/* ============================================================
   Pacific Lumber & Truss - Contact page
   Loaded only by contact.php via $page_css, so nothing here can
   affect another page.

   Palette comes from main.css :root
     --color-primary   #1C2E5C  navy
     --color-secondary #0D6D62  teal
     --color-transition#FFBC7D  amber
   ============================================================ */

.ct-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* --- Hero ------------------------------------------------------------- */
.ct-hero-sub {
    max-width: 620px;
    margin: 16px auto 0;
    color: rgba(255,255,255,0.9);
    font-size: 17px;
    line-height: 1.7;
    text-align: center;
}

/* --- Quick actions: lifted over the hero so the page opens on content -- */
.ct-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: -68px;
    position: relative;
    z-index: 5;
}

.ct-quick-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    padding: 30px 26px;
    box-shadow: 0 6px 22px rgba(28,46,92,0.09);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    display: flex;
    flex-direction: column;
}

.ct-quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(28,46,92,0.15);
    border-color: #ccd4e3;
}

.ct-ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 6px 14px rgba(13,109,98,0.26);
    flex: 0 0 auto;
}
.ct-ico svg { width: 23px; height: 23px; fill: #fff; }

.ct-eyebrow {
    font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--color-secondary);
    margin-bottom: 7px;
}

.ct-quick-card h3 {
    font-size: 19px; color: var(--color-primary);
    margin: 0 0 6px; line-height: 1.3;
}

.ct-quick-card p { margin: 0 0 14px; color: #5b626d; font-size: 14.5px; line-height: 1.65; }

.ct-quick-card .ct-action {
    margin-top: auto;
    font-weight: 600; font-size: 15px;
    color: var(--color-secondary); text-decoration: none;
    display: inline-flex; align-items: center; gap: 7px;
}
.ct-quick-card .ct-action:hover { color: var(--color-primary); }
.ct-quick-card .ct-action svg { width: 14px; height: 14px; fill: currentColor; transition: transform .18s ease; }
.ct-quick-card .ct-action:hover svg { transform: translateX(3px); }

/* --- Section heading -------------------------------------------------- */
.ct-head { text-align: center; max-width: 660px; margin: 0 auto 42px; }
.ct-head h2 { color: var(--color-primary); margin: 8px 0 12px; }
.ct-head p { color: #5b626d; font-size: 16px; line-height: 1.7; margin: 0; }
.ct-rule { width: 46px; height: 3px; border-radius: 2px; background: var(--color-secondary); margin: 0 auto 18px; }

/* --- Departments ------------------------------------------------------ */
.ct-depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.ct-dept {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    padding: 26px 22px;
    border-top: 3px solid var(--color-secondary);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ct-dept:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(28,46,92,0.12); }
.ct-dept h3 { color: var(--color-primary); font-size: 16.5px; margin: 0 0 8px; }
.ct-dept p  { color: #5b626d; font-size: 14px; line-height: 1.65; margin: 0; }

/* --- Form + sidebar --------------------------------------------------- */
.ct-main { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: start; }

.ct-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(28,46,92,0.09);
    padding: 38px;
}

.ct-card h2 { color: var(--color-primary); margin: 0 0 8px; font-size: 27px; }
.ct-card .ct-lede { color: #5b626d; font-size: 15px; line-height: 1.65; margin: 0 0 26px; }

/* Form fields */
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ct-field { margin-bottom: 18px; }

.ct-field label {
    display: block; margin-bottom: 6px;
    font-weight: 600; font-size: 13.5px; color: var(--color-primary);
}
.ct-req { color: #c0392b; margin-left: 2px; }

.ct-card input,
.ct-card select,
.ct-card textarea {
    width: 100%; box-sizing: border-box;
    font-family: var(--font-primary); font-size: 15.5px;
    padding: 13px 15px;
    background: #f4f6f8;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    min-height: 52px;
    color: var(--color-text);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ct-card textarea { min-height: 132px; resize: vertical; line-height: 1.6; }

.ct-card input:focus,
.ct-card select:focus,
.ct-card textarea:focus {
    background: #fff;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(13,109,98,0.15);
    outline: none;
}
.ct-card input::placeholder, .ct-card textarea::placeholder { color: #9aa1ab; }

.ct-submit {
    width: 100%;
    border: 0; cursor: pointer;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff; font-family: var(--font-primary);
    font-size: 16.5px; font-weight: 600;
    padding: 16px 30px; border-radius: 10px;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ct-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(13,109,98,0.3); filter: brightness(1.06); }
.ct-note { margin: 12px 0 0; font-size: 12.5px; color: #6b7280; text-align: center; }

/* Sidebar */
.ct-side { display: flex; flex-direction: column; gap: 22px; }

.ct-map-frame {
    border-radius: 16px; overflow: hidden;
    border: 1px solid #e6e9ef;
    box-shadow: 0 6px 24px rgba(28,46,92,0.09);
    background: #eef0f4;
    line-height: 0;
}
.ct-map-frame iframe { width: 100%; height: 300px; border: 0; display: block; }

.ct-panel {
    background: #fff; border: 1px solid #e6e9ef;
    border-radius: 16px; padding: 26px;
    box-shadow: 0 6px 24px rgba(28,46,92,0.09);
}
.ct-panel h3 { color: var(--color-primary); font-size: 16.5px; margin: 0 0 14px; }

.ct-list { list-style: none; margin: 0; padding: 0; }
.ct-list li {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 9px 0; border-bottom: 1px solid #f0f2f5;
    font-size: 14.5px; color: #5b626d; line-height: 1.6;
}
.ct-list li:last-child { border-bottom: 0; }
.ct-list .ct-k { color: var(--color-primary); font-weight: 600; min-width: 74px; flex: 0 0 auto; }
.ct-list a { color: var(--color-secondary); font-weight: 600; text-decoration: none; }
.ct-list a:hover { text-decoration: underline; }

/* Check list for "have this ready" */
.ct-check { list-style: none; margin: 0; padding: 0; }
.ct-check li {
    position: relative; padding: 7px 0 7px 26px;
    font-size: 14.5px; color: #5b626d; line-height: 1.6;
}
.ct-check li::before {
    content: ""; position: absolute; left: 0; top: 13px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--color-secondary);
}

/* Delivery strip */
.ct-strip {
    background: linear-gradient(135deg, var(--color-primary) 0%, #143f52 55%, var(--color-secondary) 100%);
    border-radius: 18px;
    padding: 40px 44px;
    color: #fff;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
}
.ct-strip h3 { color: #fff; margin: 0 0 10px; font-size: 24px; }
.ct-strip p  { margin: 0; color: rgba(255,255,255,0.86); font-size: 15.5px; line-height: 1.7; }
.ct-strip-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-stat { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; padding: 16px 18px; }
.ct-stat b { display: block; font-size: 23px; color: #fff; line-height: 1.2; }
.ct-stat span { font-size: 12.5px; color: rgba(255,255,255,0.8); }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
    .ct-depts { grid-template-columns: repeat(2, 1fr); }
    .ct-main  { grid-template-columns: 1fr; }
    .ct-strip { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .ct-quick { grid-template-columns: 1fr; margin-top: -40px; }
    .ct-depts { grid-template-columns: 1fr; }
    .ct-row   { grid-template-columns: 1fr; }
    .ct-card  { padding: 26px 22px; }
    .ct-strip { padding: 30px 24px; }
    .ct-strip-stats { grid-template-columns: 1fr 1fr; }
}

/* Hero polish - remove dated checkerboard shapes, add teal accent (matches pages.css) */
.page-header .shape-bottom-left,
.page-header .shape-top-right { display: none !important; }
.page-header { border-bottom: 3px solid var(--color-secondary); }
.page-header::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(circle at 88% 12%, rgba(95,214,194,0.22), transparent 42%),
        linear-gradient(180deg, transparent 55%, rgba(16,24,48,0.45) 100%);
}
}

/* --- Preferred contact method --- */
.ct-plabel { display:block; margin-bottom:8px; font-weight:600; font-size:13.5px; color:var(--color-primary); }
.ct-prefs { display:flex; flex-wrap:wrap; gap:8px; }
.ct-prefs label {
    display:inline-flex; align-items:center; gap:7px;
    padding:9px 15px; border:1px solid #dfe3e8; border-radius:100px;
    background:#f4f6f8; font-size:14.5px; color:#5b626d; cursor:pointer;
    font-weight:500; margin:0; transition:border-color .16s, background .16s, color .16s;
}
.ct-prefs label:hover { border-color:#c3ccd8; }
.ct-prefs input { width:auto; min-height:0; margin:0; accent-color:var(--color-secondary); }
/* highlight the chosen option */
.ct-prefs label:has(input:checked) {
    border-color:var(--color-secondary); background:rgba(13,109,98,.08); color:var(--color-primary);
}
@media (max-width:520px){ .ct-prefs label { flex:1 1 calc(50% - 4px); justify-content:center; } }


/* Eyebrow labels are 10.5px, which is under the readable floor on phones
   and tablets alike - the drawer breakpoint is 1024px, so match it. */
@media (max-width: 1024px) {
    .ct-eyebrow { font-size: 11.5px; letter-spacing: 1.1px; }
}
}

/* --- Plan upload field --- */
.ct-opt { font-weight: 500; font-size: 12px; color: #8a93a3; margin-left: 5px; text-transform: none; letter-spacing: 0; }
.ct-card input[type="file"] {
    padding: 11px 13px; font-size: 14px; background: #f4f6f8;
    border: 1px dashed #c9d2e0; border-radius: 10px; cursor: pointer; min-height: 0;
}
.ct-card input[type="file"]:hover { border-color: var(--color-secondary); background: #eef4f3; }
.ct-card input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 7px;
    background: var(--color-primary); color: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.ct-help { margin: 7px 0 0; font-size: 12.5px; color: #6b7280; line-height: 1.55; }

/* --- Account application form (credit-application.php) --- */
.ct-legend {
    font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--color-secondary); margin: 26px 0 14px; padding-bottom: 8px;
    border-bottom: 1px solid #eef1f6;
}
.ct-card form > .ct-legend:first-of-type { margin-top: 4px; }

/* .ct-plabel sat larger/lighter than the real <label>s — match them exactly. */
.ct-card .ct-plabel {
    display: block; margin-bottom: 8px;
    font-weight: 600; font-size: 13.5px; color: var(--color-primary);
}
