/* ============================================================
   Contact / Request a quote — light, airy layout.
   Header (pill, big title, note) · form card + tall photo · three contact details ·
   "browse products" block with photo + map. Builds on krung.css + page-base.css.
   ============================================================ */

.ct {
    max-width: calc(var(--wrap, 1400px) + 2 * var(--pad));
    margin: 0 auto;
    padding: clamp(130px, 13vw, 170px) var(--pad) 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);
}

/* ---------------------------------------------------------------- header */
.ct-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: clamp(30px, 3.5vw, 48px);
}

.ct-head .ct-pill { margin-bottom: 18px; opacity: 0; transition: opacity .6s .1s; }
.ready .ct-head .ct-pill { opacity: 1; }

.ct-title {
    overflow: hidden;
    font-size: clamp(48px, 6.4vw, 96px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.05em;
    color: var(--ink);
}

.ct-title span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--out) .15s; }
.ready .ct-title span { transform: none; }

.ct-note {
    max-width: 340px;
    padding-bottom: 8px;
    text-align: right;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .8s .45s, transform 1s var(--out) .45s;
}

.ready .ct-note { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- form + photo */
.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 { 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, like the reference */
.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; }

/* tall photo card */
.ct-photo { position: relative; min-height: 420px; overflow: hidden; border-radius: 26px; background: #dbe9f6; }
.ct-photo-img { position: absolute; inset: -8% 0; background-size: cover; background-position: center; transition: scale 1.4s var(--out); }
.ct-photo:hover .ct-photo-img { scale: 1.05; }
.ct-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 29, 64, 0) 50%, rgba(10, 29, 64, .55) 100%); pointer-events: none; }

.ct-photo-pill {
    position: absolute;
    z-index: 1;
    top: 18px;
    right: 18px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
}

.ct-photo figcaption {
    position: absolute;
    z-index: 1;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--muted);
    animation: floatY 6s ease-in-out infinite;
}

.ct-photo figcaption b { display: block; font-size: 14px; color: var(--ink); }
.ct-photo-prod { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 44px; border-radius: 10px; background: #f3f6fa; }
.ct-photo-prod img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }

/* ---------------------------------------------------------------- contact details */
.ct-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: clamp(56px, 7vw, 90px) 0;
    text-align: center;
}

.ct-info-ico {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 50%;
    border: 1px solid rgba(13, 35, 64, .12);
    color: var(--ink);
    font-size: 19px;
    transition: background-color .35s, color .35s, border-color .35s, transform .5s var(--out);
}

.ct-info-item:hover .ct-info-ico { background: #005bac; border-color: #005bac; color: #fff; transform: translateY(-3px); }
.ct-info h2 { margin-bottom: 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.ct-info p { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.ct-info a { color: var(--muted); text-decoration: none; transition: color .25s; }
.ct-info a:hover { color: #005bac; }

/* ---------------------------------------------------------------- browse + map */
.ct-end {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 60px);
    align-items: center;
    padding: clamp(24px, 3vw, 40px);
    border-radius: 30px;
    background: #f5f7fa;
}

.ct-end-copy .ct-pill { margin-bottom: 16px; background: #fff; }
.ct-end h2 { margin-bottom: 14px; font-size: clamp(28px, 3vw, 44px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; color: var(--ink); }
.ct-end-copy p { max-width: 420px; margin-bottom: 24px; font-size: 15px; line-height: 1.65; color: var(--muted); }

.ct-end-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; height: clamp(260px, 24vw, 340px); }
.ct-end-photo { border-radius: 20px; background-size: cover; background-position: center; transition: transform .8s var(--out); }
.ct-end-photo:hover { transform: scale(1.02); }
.ct-map { overflow: hidden; border-radius: 20px; background: #e5ebf2; }
.ct-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.3); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
    .ct-head { flex-direction: column; align-items: flex-start; }
    .ct-note { text-align: left; }
    .ct-main, .ct-end { grid-template-columns: 1fr; }
    .ct-photo { min-height: 320px; }
}

@media (max-width: 600px) {
    .ct { padding-top: 120px; }
    .ct-form { grid-template-columns: 1fr; }
    .ct-info { grid-template-columns: 1fr; gap: 34px; }
    .ct-end-media { grid-template-columns: 1fr; height: auto; }
    .ct-end-photo { height: 180px; }
    .ct-map { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
    .ct-title span, .ct-note, .ct-head .ct-pill { transform: none; opacity: 1; transition: none; }
    .ct-photo figcaption { animation: none; }
}

/* closing block: map fills the media area (photo removed) */
.ct-end-media { grid-template-columns: 1fr !important; }

/* contact page: slimmer side padding */
.ct { max-width: calc(1320px + 2 * clamp(20px, 4vw, 64px)) !important; padding-left: clamp(20px, 4vw, 64px) !important; padding-right: clamp(20px, 4vw, 64px) !important; }
