/* ============================================================
   Contact / Request a quote — v2.
   Navy hero panel (line-rise title, quick actions, floating equipment
   cutouts, sliding marquee) · form card + contact rail with map ·
   browse CTA band. Builds on krung.css + page-base.css.
   ============================================================ */

.ct {
    max-width: calc(1320px + 2 * clamp(20px, 4vw, 64px));
    margin: 0 auto;
    padding: clamp(110px, 11vw, 150px) clamp(20px, 4vw, 64px) clamp(60px, 7vw, 100px);
}

.ct-pill {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 999px;
    background: #eef1f5;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}

/* ---------------------------------------------------------------- hero panel */
.ct-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(16px, 2vw, 26px);
    padding: clamp(34px, 4.6vw, 70px) clamp(24px, 4vw, 64px) 0;
    border-radius: 30px;
    background:
        radial-gradient(55% 70% at 78% 30%, rgba(0, 91, 172, .14), rgba(0, 91, 172, 0) 70%),
        radial-gradient(rgba(0, 91, 172, .09) 1px, transparent 1.4px) 0 0 / 22px 22px,
        linear-gradient(165deg, #f3f8fd 0%, #e7f0fa 100%);
    background-color: #eef4fb;
    color: var(--ink);
}

.ct-hero .ct-pill { background: #fff; color: #005bac; margin-bottom: 20px; opacity: 0; transition: opacity .6s .1s; }
.ready .ct-hero .ct-pill { opacity: 1; }

.ct-hero-inner { position: relative; z-index: 1; max-width: 640px; }

.ct-title {
    font-size: clamp(42px, 5.6vw, 84px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.045em;
    color: var(--ink);
}
.ct-title > span { display: block; overflow: hidden; }
.ct-title > span > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--out) .15s; }
.ct-title > span:nth-child(2) > span { transition-delay: .26s; }
.ct-title em { font-style: normal; color: #005bac; }
.ready .ct-title > span > span { transform: none; }

.ct-hero-note {
    max-width: 440px;
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--muted);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .8s .45s, transform 1s var(--out) .45s;
}
.ready .ct-hero-note { opacity: 1; transform: none; }

.ct-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 26px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .8s .6s, transform 1s var(--out) .6s;
}
.ready .ct-hero-actions { opacity: 1; transform: none; }

.ct-act {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid rgba(13, 35, 64, .16);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: background-color .3s, border-color .3s, color .3s;
}
.ct-act .ico { font-size: 16px; color: #005bac; transition: color .3s; }
.ct-act:hover { background: #005bac; border-color: #005bac; color: #fff; }
.ct-act:hover .ico { color: #fff; }

.ct-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.ct-live i { width: 8px; height: 8px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 4px rgba(53, 208, 127, .18); }

/* floating equipment cutouts */
.ct-hero-floats { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ct-float {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0, 91, 172, .14);
    animation: ctBob 6s ease-in-out infinite;
}
.ct-float img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.ct-float.f1 { width: clamp(120px, 11vw, 170px); height: clamp(120px, 11vw, 170px); right: clamp(16%, 18vw, 21%); top: 16%; }
.ct-float.f2 { width: clamp(90px, 8vw, 130px); height: clamp(90px, 8vw, 130px); right: 6%; top: 44%; animation-delay: -2.2s; animation-duration: 7s; }
.ct-float.f3 { width: clamp(76px, 6.6vw, 108px); height: clamp(76px, 6.6vw, 108px); right: clamp(24%, 27vw, 30%); top: 56%; animation-delay: -4s; animation-duration: 5.4s; }
@keyframes ctBob {
    0%, 100% { transform: translateY(-9px) rotate(-1.2deg); }
    50% { transform: translateY(9px) rotate(1.2deg); }
}

/* sliding marquee along the bottom of the panel */
.ct-marq { position: relative; margin-top: clamp(26px, 3.4vw, 46px); overflow: hidden; white-space: nowrap; }
.ct-marq-track {
    display: inline-flex;
    align-items: baseline;
    gap: .55em;
    padding-right: .55em;
    font-size: clamp(44px, 6.4vw, 96px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: rgba(0, 91, 172, .08);
    animation: ctSlide 30s linear infinite;
    will-change: transform;
}
.ct-marq-track em { font-style: normal; font-size: .42em; color: rgba(0, 91, 172, .11); }
@keyframes ctSlide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- form + rail */
.ct-main {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(14px, 1.6vw, 22px);
    align-items: stretch;
}

.ct-form-card {
    padding: clamp(22px, 2.6vw, 36px);
    border-radius: 26px;
    background: #f5f7fa;
}

.ct-form-head { margin-bottom: 22px; }
.ct-form-head h2 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.ct-form-head p { margin-top: 4px; font-size: 14px; color: var(--muted); }

.ct-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
.ct-wide { grid-column: 1 / -1; }
.ct-hp { position: absolute; left: -9999px; }

.ct-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--ink); }

.ct-field input,
.ct-field textarea,
.ct-select select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 14.5px;
    color: var(--ink);
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}

.ct-field textarea { resize: vertical; min-height: 110px; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #9aa7b6; }

.ct-field input:focus,
.ct-field textarea:focus,
.ct-select select:focus { border-color: rgba(0, 91, 172, .45); box-shadow: 0 0 0 4px rgba(0, 91, 172, .1); }

.ct-select { position: relative; }
.ct-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.ct-select .ico { position: absolute; right: 14px; top: 50%; margin-top: -8px; font-size: 16px; color: var(--light); pointer-events: none; }

.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }

.ct-chips button {
    padding: 8px 14px;
    border: 1px solid rgba(13, 35, 64, .12);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s;
}

.ct-chips button:hover { border-color: rgba(0, 91, 172, .35); color: #005bac; }
.ct-chips button.on { background: #005bac; border-color: #005bac; color: #fff; }

/* pill button with a round arrow */
.ct-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s;
}

.ct-btn-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    transform: rotate(-45deg);
    transition: transform .5s var(--out);
}

.ct-btn:hover { background: #005bac; }
.ct-btn:hover .ct-btn-arrow { transform: rotate(0); }

.ct-error { margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; background: #fdecec; font-size: 14px; color: #a12a2a; }

.ct-done { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; min-height: 340px; }
.ct-done-ico { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 20px; border-radius: 50%; background: #005bac; color: #fff; font-size: 26px; }
.ct-done-ico .ico { stroke-width: 2.2; }
.ct-done h2 { margin-bottom: 10px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.ct-done p { max-width: 460px; margin-bottom: 26px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.ct-done p a { color: #005bac; font-weight: 600; }

/* contact rail: tiles + map */
.ct-rail { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); }

.ct-tile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(13, 35, 64, .1);
    background: #fff;
    text-decoration: none;
    transition: border-color .3s, background-color .3s;
}
.ct-tile:hover { border-color: rgba(0, 91, 172, .4); background: #f6faff; }

.ct-tile-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eaf2fb;
    color: #005bac;
    font-size: 18px;
    transition: background-color .3s, color .3s, transform .5s var(--out);
}
.ct-tile:hover .ct-tile-ico { background: #005bac; color: #fff; transform: translateY(-2px); }

.ct-tile b { display: block; margin-bottom: 2px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.ct-tile p, .ct-tile span.tx { display: block; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.ct-tile .tx a { color: var(--muted); text-decoration: none; transition: color .25s; }
.ct-tile .tx a:hover { color: #005bac; }

.ct-map { flex: 1; min-height: 220px; overflow: hidden; border-radius: 20px; border: 1px solid rgba(13, 35, 64, .1); background: #e5ebf2; }
.ct-map iframe { display: block; width: 100%; height: 100%; min-height: 220px; border: 0; filter: grayscale(.3); }

/* ---------------------------------------------------------------- browse band */
.ct-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    margin-top: clamp(40px, 5vw, 70px);
    padding: clamp(24px, 3vw, 40px);
    border-radius: 30px;
    background: #f5f7fa;
}

.ct-end-copy .ct-pill { margin-bottom: 14px; background: #fff; }
.ct-end h2 { margin-bottom: 10px; max-width: 520px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; color: var(--ink); }
.ct-end-copy p { max-width: 460px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .ct-float.f3 { display: none; }
}
@media (max-width: 900px) {
    .ct-main { grid-template-columns: 1fr; }
    .ct-hero-floats { display: none; }
    .ct-map { min-height: 260px; }
}
@media (max-width: 600px) {
    .ct { padding-top: 104px; }
    .ct-form { grid-template-columns: 1fr; }
    .ct-hero { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .ct-title > span > span, .ct-hero-note, .ct-hero-actions, .ct-hero .ct-pill { transform: none; opacity: 1; transition: none; }
    .ct-float, .ct-marq-track { animation: none; }
}
