/* HERO */
.lcm-contact-hero {
    height: clamp(80px, 10.83vw, 208px) !important;
    min-height: clamp(80px, 10.83vw, 208px) !important;
    max-height: clamp(80px, 10.83vw, 208px) !important;
}

.lcm-contact-hero .lcm-page-hero__content {
    padding: clamp(20px, 4.17vw, 80px) clamp(24px, 19.11vw, 367px) !important;
}

/* MAIN CONTACT SECTION */
.lcm-contact-body {
    background: #FBF5EE;
    padding: 72px 0 100px;
}

:root {
    --lcm-container: 75vw;
    /* === FLUID SCALE BASE ===
       Semua nilai px di bawah ini dianggap "benar" pada viewport 1920px.
       --lcm-unit = setara 1px pada baseline 1920px, dalam satuan vw.
       Pola pakainya: clamp(MIN, calc(N * var(--lcm-unit)), Npx)
       - Npx (batas atas)  -> mengunci agar tidak membesar di layar >1920
       - calc(...)         -> menyusut proporsional mengikuti lebar viewport
       - MIN (batas bawah) -> jaga keterbacaan sebelum breakpoint mobile ambil alih
    */
    --lcm-unit: calc(100vw / 1920);
}

.lcm-contact-body__inner {
    width: min(100% - (var(--lcm-pad-x) * 2), var(--lcm-container));
    margin-left: auto;
    margin-right: auto;
}

/* LEFT — Info Panel (heading, sub, office-label full width; row di bawahnya) */
.lcm-contact-info {
    display: block;
    width: 100%;
}

.lcm-contact-info__heading {
    font-family: 'Kinfolk', serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(28px, calc(48 * var(--lcm-unit)), 48px);
    line-height: 125%;
    letter-spacing: 0.03em;
    color: #2D2210;
    text-transform: none;
    max-width: 1440px;
    width: 100%;
    margin: 0 0 clamp(18px, calc(32 * var(--lcm-unit)), 32px);
}

.lcm-contact-info__heading br {
    display: none;
}

.lcm-contact-info__sub {
    font-family: 'adobe-garamond-pro', 'EB Garamond', serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(19px, calc(32 * var(--lcm-unit)), 32px);
    line-height: 100%;
    letter-spacing: 0.03em;
    color: #2D2210;
    max-width: 1440px;
    width: 100%;
    margin: 0 0 clamp(30px, calc(60 * var(--lcm-unit)), 60px);
}

.lcm-contact-info__divider {
    display: none;
}

.lcm-contact-info__office-label {
    font-family: 'adobe-garamond-pro', 'EB Garamond', serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(19px, calc(32 * var(--lcm-unit)), 32px);
    line-height: 100%;
    letter-spacing: 0.03em;
    color: #2D2210;
    max-width: 1440px;
    width: 100%;
    margin: 0 0 clamp(14px, calc(24 * var(--lcm-unit)), 24px);
}

/* ── Baris utama: details (list+map) + form sejajar ── */
.lcm-contact-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1440px;
    height: clamp(430px, calc(574 * var(--lcm-unit)), 574px);
}

/* Wrapper: list + map jadi satu grup */
.lcm-contact-info__details {
    display: flex;
    flex-direction: column;
    gap: clamp(22px, calc(40 * var(--lcm-unit)), 40px);
    width: 100%;
    max-width: clamp(320px, calc(563 * var(--lcm-unit)), 563px);
    min-width: 0;
}

.lcm-contact-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, calc(28 * var(--lcm-unit)), 28px);
    width: 100%;
}

.lcm-contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: clamp(14px, calc(24 * var(--lcm-unit)), 24px);
    font-family: 'adobe-garamond-pro', 'EB Garamond', serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(15px, calc(24 * var(--lcm-unit)), 24px);
    line-height: 100%;
    letter-spacing: 0.03em;
    color: #2D2210;
    min-height: clamp(20px, calc(32 * var(--lcm-unit)), 32px);
}

.lcm-contact-info__item span:last-child {
    max-width: clamp(280px, calc(503 * var(--lcm-unit)), 503px);
    width: 100%;
}

.lcm-contact-info__icon {
    flex-shrink: 0;
    color: #2D2210;
    margin-top: 2px;
}

.lcm-contact-info__item a {
    color: #2D2210;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lcm-contact-info__item a:hover {
    color: var(--lcm-gold);
}

.lcm-contact-info__map {
    width: 100%;
    max-width: clamp(320px, calc(563 * var(--lcm-unit)), 563px);
    height: clamp(230px, calc(390 * var(--lcm-unit)), 390px);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 110, 0.2);
    box-shadow: 0 4px 20px rgba(45, 34, 16, 0.08);
}

.lcm-contact-info__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Form — child flex dari .lcm-contact-row, ukuran fix sesuai spec (di-scale fluid) */
.lcm-contact-form {
    width: clamp(340px, calc(606 * var(--lcm-unit)), 606px);
    height: clamp(430px, calc(574 * var(--lcm-unit)), 574px);
    flex-shrink: 0;
    background: #2D2210;
    border-radius: 10px;
    opacity: 1;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

/* Generic rule kept for backward-compat (mis. kalau suatu saat balik pakai iframe) */
.lcm-contact-form > * {
    flex: 1;
    width: 100% !important;
    min-height: clamp(460px, calc(620 * var(--lcm-unit)), 620px);
    border: 0;
    display: block;
}

.lcm-contact-form iframe {
    width: 100% !important;
    min-height: clamp(460px, calc(620 * var(--lcm-unit)), 620px);
    height: 100%;
    border: 0;
    display: block;
    background: transparent;
}

/* RESPONSIVE */
@media (max-width: 1280px) {
    .lcm-contact-row {
        column-gap: 48px;
    }
}

@media (max-width: 1024px) {
    .lcm-contact-body {
        padding: 56px 0 72px;
    }

    .lcm-contact-row {
        flex-direction: column;
        height: auto;
        row-gap: 40px;
        align-items: stretch;
    }

    .lcm-contact-info__heading br {
        display: block;
    }

    .lcm-contact-info__details,
    .lcm-contact-info__map {
        max-width: 100%;
    }

    .lcm-contact-form {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .lcm-contact-body {
        padding: 48px 0 64px;
    }

    .lcm-contact-form iframe,
    .lcm-contact-form > * {
        min-height: 760px;
    }
}

@media (max-width: 480px) {
    .lcm-contact-body {
        padding: 40px 0 56px;
    }

    .lcm-contact-form iframe,
    .lcm-contact-form > * {
        min-height: 820px;
    }
}

/* ============================================================
   NATIVE FORM (lcmcat) — pengganti iframe di .lcm-contact-form
   Submit ke: https://public-api.escapenomade.com/api/v1/wordpress/requestCatalog/LCM
   ============================================================ */

.lcm-contact-form .lcmcat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    min-height: unset;   /* buang, karena tinggi udah dikunci dari parent */
    height: 100%;
    box-sizing: border-box;
}

.lcmcat__form {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, calc(26 * var(--lcm-unit)), 26px);
}

.lcmcat__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lcmcat__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lcmcat__label {
    font-family: "adobe-garamond-pro", serif;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #FBF5EE;
}

.lcmcat__req {
    color: #b8926a;
}

/* ── Input & Select ── */
.lcmcat__input {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #b8926a;
    border-radius: 0;
    padding: 10px 0;
    font-family: "adobe-garamond-pro", serif;
    font-size: 15px;
    color: #f5ede1;
    outline: none;
    width: 100%;
    transition: border-color 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lcmcat__input::placeholder {
    color: rgba(245, 237, 225, 0.4);
}

.lcmcat__input:focus {
    border-bottom-color: #f5ede1;
}

.lcmcat__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8926a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
    background-color: transparent;
}

.lcmcat__select option {
    color: #2D2210;
}

/* ── WhatsApp phone row ── */
.lcmcat__phone-wrap {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    border-bottom: 1.5px solid #b8926a;
    transition: border-color 0.25s ease;
}

.lcmcat__phone-wrap:focus-within {
    border-bottom-color: #f5ede1;
}

.lcmcat__input--phone {
    border-bottom: none;
    flex: 1;
}

/* ── Flag dropdown ── */
.lcmcat__flag-dropdown {
    position: relative;
    flex-shrink: 0;
}

.lcmcat__flag-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 10px 4px 10px 0;
    font-family: "adobe-garamond-pro", serif;
    font-size: 14px;
    color: #f5ede1;
    cursor: pointer;
}

.lcmcat__flag-icon {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
}

.lcmcat__flag-trigger::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #b8926a;
    border-bottom: 1.5px solid #b8926a;
    transform: rotate(45deg);
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.lcmcat__flag-dropdown.open .lcmcat__flag-trigger::after {
    transform: rotate(225deg);
}

/* ── Flag search box (hanya tampil saat dropdown terbuka) ── */
.lcmcat__flag-search-wrap {
    display: none;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(184, 146, 106, 0.3);
}

.lcmcat__flag-dropdown.open .lcmcat__flag-search-wrap {
    display: block;
}

.lcmcat__flag-search {
    width: 100%;
    border: 1px solid rgba(184, 146, 106, 0.4);
    border-radius: 4px;
    padding: 8px 10px;
    font-family: "adobe-garamond-pro", serif;
    font-size: 13px;
    color: #4a3620;
    background: #fff;
    outline: none;
}

.lcmcat__flag-search:focus {
    border-color: #b8926a;
}

.lcmcat__flag-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    max-height: 280px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fdfaf5;
    border: 1px solid #b8926a;
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(30, 17, 8, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 50;
}

.lcmcat__flag-dropdown.open .lcmcat__flag-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lcmcat__flag-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-family: "adobe-garamond-pro", serif;
    font-size: 14px;
    color: #4a3620;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lcmcat__flag-list li:hover,
.lcmcat__flag-list li.selected {
    background: #f1e5d4;
}

.lcmcat__flag-list li img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Feedback ── */
.lcmcat__feedback {
    font-family: "adobe-garamond-pro", serif;
    font-size: 14px;
    min-height: 20px;
}

.lcmcat__feedback--success {
    color: #a9c79a;
}

.lcmcat__feedback--error {
    color: #e0a08a;
}

/* ── Submit ── */
.lcmcat__submit {
    width: 100%;
    padding: 16px 0;
    background: #B78758;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: "adobe-garamond-pro", serif;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FBF5EE;
    transition: background 0.25s ease, opacity 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.lcmcat__submit:hover:not(:disabled) {
    background: #d9c4a8;
}

.lcmcat__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lcmcat__submit-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(251, 245, 238, 0.3);
    border-top-color: #FBF5EE;
    border-radius: 50%;
    animation: lcmcatSpin 0.75s linear infinite;
    flex-shrink: 0;
}

.lcmcat__submit--loading .lcmcat__submit-loader {
    display: block;
}

.lcmcat__submit--loading .lcmcat__submit-label {
    opacity: 0.7;
}

@keyframes lcmcatSpin {
    to { transform: rotate(360deg); }
}

/* ── Form hidden state (dibutuhkan supaya form benar-benar
   hilang saat JS set atribut [hidden] setelah submit sukses;
   tanpa ini, display:flex di atas mengalahkan [hidden]) ── */
.lcmcat__form[hidden] {
    display: none;
}

/* ── Thank You / Success state ── */
.lcmcat__success[hidden] {
    display: none;
}

.lcmcat__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 16px;
    animation: lcmcatFadeIn 0.4s ease;
}

.lcmcat__success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #b8926a;
    color: #2D2210;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.lcmcat__success-title {
    font-family: "adobe-garamond-pro", serif;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 400;
    color: #f5ede1;
    margin: 0 0 14px;
}

.lcmcat__success-text {
    font-family: "adobe-garamond-pro", serif;
    font-size: 15px;
    line-height: 1.6;
    color: #d9c4a8;
    max-width: 420px;
    margin: 0 0 28px;
}

.lcmcat__success-btn {
    padding: 14px 28px;
    background: #b8926a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "adobe-garamond-pro", serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2D2210;
    transition: background 0.25s ease;
}

.lcmcat__success-btn:hover {
    background: #d9c4a8;
}

@keyframes lcmcatFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .lcm-contact-form .lcmcat {
        padding: 28px 22px;
    }

    .lcmcat__row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}