/* Contact page (page-lien-he.php) */

.contact-intro {
    padding: 80px 24px 60px;
    text-align: center;
}

.contact-intro h1 {
    font: 500 48px / 1.2 var(--title);
    color: var(--ink);
    letter-spacing: .02em
}

.contact-section {
    border-top: 1px solid #8D6E5180;
    border-bottom: 1px solid #8D6E5180;
    margin-bottom: 100px;
}

.contact-frame {
    width: min(1530px, calc(100% - 80px));
    margin: 0 auto;
    padding: 80px 0 100px;
    border-right: 1px solid #8D6E5180;
    border-left: 1px solid #8D6E5180;
}

.contact-info-inner {
    max-width: 487px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 720px;
    align-items: stretch;
    max-width: 1262px;
    margin: 0 auto;
}

.contact-info {
    padding: 0 48px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    min-height: 100%
}

.contact-heading {
    color: #4E3438;
    font-family: Public Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 30px;
    leading-trim: CAP_HEIGHT;
    line-height: 40px;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.contact-block {
    margin-bottom: 0
}

.contact-label {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
    font-family: 'Public Sans';
    font-family: Public Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 25.2px;
    letter-spacing: 1.8px;
    vertical-align: middle;
    text-transform: uppercase;
}

.contact-block p {
    margin: 0;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.55;
    color: #4E3438;
}

.contact-block a:hover {
    color: var(--accent)
}

.contact-hours ul {
    margin: 6px 0 0;
}

.contact-hours li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    border-bottom: 1px solid #8D6E5180;
    padding: 5px 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    font-family: Public Sans;
    font-weight: 300;
    font-style: Light;
    font-size: 20px;
    leading-trim: CAP_HEIGHT;
    line-height: 31px;
    letter-spacing: 0.1px;
    vertical-align: middle;
}

.contact-map {
    margin-top: 0
}

.contact-map .contact-heading {
    margin-bottom: 16px
}

.contact-map-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8e6e1;
    border: 1px solid var(--line)
}

.contact-map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0
}

.contact-form-panel {
    padding: 56px 60px 48px;
    background: #e8e6e1;
    display: flex;
    flex-direction: column;
    max-height: 900px;
    border: 1px solid #8D6E518A;
}

.contact-form-panel .contact-heading {
    margin-bottom: 32px
}

.contact-notice {
    margin: -8px 0 24px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.45;
    border: 1px solid transparent
}

.contact-notice.is-success {
    color: #2f4a35;
    background: rgba(255, 255, 255, .55);
    border-color: rgba(47, 74, 53, .25)
}

.contact-notice.is-error {
    color: #6b2e24;
    background: rgba(255, 255, 255, .55);
    border-color: rgba(107, 46, 36, .25)
}

.contact-form .contact-notice--ajax {
    margin: 0
}

.contact-form .contact-field.is-invalid input,
.contact-form .contact-field input.is-invalid {
    border-color: rgba(107, 46, 36, .55)
}

.contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 28px
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.contact-field>span,
.contact-needs legend {
    font-size: 15px;
    color: #4E3438;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-family: Public Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 25.2px;
    letter-spacing: 1.8px;
    vertical-align: middle;
    text-transform: uppercase;
    /* color: var(--ink); */
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    margin: 0;
    padding: 0px;
    border: 0;
    border-bottom: 1px solid #B4A595;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: 400 17px / 1.45 var(--body);
    outline: none;
    resize: vertical;
    appearance: none;
    box-shadow: none
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-bottom-color: var(--accent)
}

.contact-field--slide {
    position: relative;
    isolation: isolate;
    gap: 0
}

.contact-field--slide input {
    position: relative;
    z-index: 1;
    background: transparent !important
}

.contact-form .contact-field input:-webkit-autofill,
.contact-form .contact-field input:-webkit-autofill:hover,
.contact-form .contact-field input:-webkit-autofill:focus,
.contact-form .contact-field input:-webkit-autofill:active,
.contact-form .contact-field textarea:-webkit-autofill,
.contact-form .contact-field textarea:-webkit-autofill:hover,
.contact-form .contact-field textarea:-webkit-autofill:focus,
.contact-form .contact-field textarea:-webkit-autofill:active {
    -webkit-text-fill-color: var(--ink, #4d403a) !important;
    caret-color: var(--ink, #4d403a);
    transition: background-color 99999s ease-out;
    box-shadow: 0 0 0 1000px #e8e6e1 inset !important;
    background-color: transparent !important;
    background-image: none !important
}

.contact-form.is-submitting {
    pointer-events: none;
    opacity: .72;
    user-select: none
}

.contact-success-dialog {
    padding: 24px 16px;
    border: 0;
    margin: auto;
    max-width: none;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    background: rgba(27, 19, 16, .62);
    color: var(--ink, #4d403a);
    overflow: auto;
    z-index: 10000
}

.contact-success-dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: contact-success-dim-in .4s cubic-bezier(0.16, 1, 0.3, 1) both
}

.contact-success-dialog::backdrop {
    background: transparent
}

.contact-success {
    position: relative;
    width: min(480px, 100%);
    margin: auto;
    padding: 48px 36px 40px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 64px rgba(27, 19, 16, .28);
    animation: contact-success-panel-in .45s cubic-bezier(0.16, 1, 0.3, 1) both
}

.contact-success-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--ink, #4d403a);
    font-size: 28px;
    line-height: 1;
    cursor: pointer
}

.contact-success-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(141, 110, 81, .12);
    color: var(--accent, #8d6e51)
}

.contact-success-title {
    margin: 0 0 12px;
    font: 500 32px / 1.2 var(--title);
    font-synthesis: none;
    color: var(--accent, #8d6e51);
    letter-spacing: .02em
}

.contact-success-text {
    margin: 0 0 28px;
    font: 300 16px / 1.55 var(--body, Arial, sans-serif);
    color: var(--ink, #4d403a)
}

.contact-success-btn {
    min-width: 153px;
    min-height: 52px;
    padding: 12px 28px;
    border: 1px solid var(--accent, #8d6e51);
    background: var(--accent, #8d6e51);
    color: #fff;
    font: 300 18px / 1.4 var(--body, Arial, sans-serif);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease
}

.contact-success-btn:hover {
    background: transparent;
    color: var(--ink, #4d403a)
}

@keyframes contact-success-dim-in {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes contact-success-panel-in {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0) scale(.98)
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1)
    }
}

body.contact-success-open {
    overflow: hidden
}

.contact-field--slide input::placeholder {
    color: transparent
}

.contact-field--slide[data-placeholder]::after {
    content: attr(data-placeholder);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate3d(0, -50%, 0);
    color: #B4A595;
    font: 400 14px / 1.4 var(--body);
    letter-spacing: .06em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    transition:
        transform .75s cubic-bezier(0.16, 1, 0.3, 1),
        opacity .7s ease,
        color .7s ease;
    will-change: transform, opacity
}

.contact-field--slide.is-active[data-placeholder]::after,
.contact-field--slide:focus-within[data-placeholder]::after {
    transform: translate3d(48px, -50%, 0);
    opacity: 0;
    color: var(--accent)
}

.contact-field-message textarea {
    min-height: 120px;
    height: 120px;
    font-size: 17px;
    line-height: 30px;
    padding: 0;
    border-bottom: 0;
    overflow: hidden;
    resize: none;
    background-image: repeating-linear-gradient(transparent 0,
            transparent 29px,
            #BEAFA0 29px,
            #BEAFA0 30px);
    background-size: 100% 30px;
    background-attachment: local;
    background-position: 0 0
}

.contact-field-message textarea:focus {
    border-bottom: 0
}

fieldset.contact-needs {
    border: 0;
    padding: 0;
    margin-top: 50px;
    margin-bottom: 50px;
}

.contact-needs legend {
    margin-bottom: 14px;
    padding-bottom: 10px !important;
    padding: 0;
    border-bottom: 1px solid #BEAFA0;
    display: block;
    width: 100%;
}

.contact-needs-list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px 28px;
    overflow: visible
}

.contact-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    width: 100%;
    cursor: pointer;
    color: var(--ink);
    font-family: Public Sans;
    font-weight: 300;
    font-size: 20px;
    line-height: 31px;
    letter-spacing: 0.1px;
    white-space: normal
}

.contact-radio span {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word
}

.contact-radio input {
    appearance: none;
    width: 16px;
    height: 16px;
    margin: 7.5px 0 0;
    flex-shrink: 0;
    border: 1.5px solid rgba(77, 64, 58, .55);
    border-radius: 50%;
    display: grid;
    place-content: center;
    background: transparent
}

.contact-radio input:checked {
    border-color: var(--accent)
}

.contact-radio input:checked:before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent)
}

.contact-actions {
    margin-top: 40px;
    margin-bottom: 80px;
    padding-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.contact-actions .button {
    min-height: 52px;
    padding: 12px 28px;
    font-size: 18px;
    letter-spacing: 1.2px
}

.contact-actions .arrow-link:after {
    width: 45px;
    height: 10px;
    margin-left: 12px;
}

@media (max-width: 1199px) {
    .contact-intro {
        padding: 40px 24px 24px
    }

    .contact-intro h1 {
        font-size: 40px
    }


    .contact-frame {
        width: calc(100% - 64px)
    }

    .contact-info,
    .contact-form-panel {
        padding: 44px 36px
    }
  .contact-info{
    padding-left: 0;
  }
  .contact-grid{
    padding: 0 20px
  }
    .contact-block p,
    .contact-hours li,
    .contact-field input,
    .contact-field textarea,
    .contact-radio {
        font-size: 16px
    }
}

@media (max-width: 899px) {
    .contact-grid {
        grid-template-columns: 1fr;
        min-height: 0
    }

    .contact-info-inner {
        height: auto;
        min-height: 0;
        justify-content: flex-start;
        gap: 22px
    }

    .contact-form-panel {
        border-left: 0;
        border-top: 1px solid var(--line)
    }

    .contact-map-frame {
        aspect-ratio: 16 / 11
    }
}

@media (max-width: 767px) {
    .contact-intro {
        padding: 19px 20px 35px;
        margin-bottom: 0 !important;
        border-bottom: 0 !important;
    }

    .contact-intro h1 {
        font-size: 24px;
        line-height: 30px;
    }

    .contact-section {
        border-top: 1px solid #8D6E5180 !important;
        border-bottom: 0 !important;
        padding-bottom: 0;
        margin-bottom: 56px;
    }

    .contact-frame {
        margin-inline: 15px !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .contact-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 0;
        margin: 0;
    }

    /* —— Tầng 1: Thông tin & Bản đồ —— */
    .contact-info {
        padding: 35px 15px 35px !important;
        width: 100%;
        box-sizing: border-box;
        border-left: 1px solid #8D6E5180 !important;
        border-right: 1px solid #8D6E5180 !important;
        border-bottom: 0px ;
        border-top: 0 !important;
        position:relative;
    }
    .contact-info::before{
        position: absolute;
        content: "";
        width: calc(100% + 32px);
        bottom: 0;
        height: 1px;
        background-color: #8D6E5180;
        left:-16px;
        right:-16px;
    }
    .contact-info-inner {
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }

    .contact-label {
        font-size: 12px;
        line-height: 18px;
        letter-spacing: 1.2px;
        margin-bottom: 2px;
    }

    .contact-hours ul {
        margin-top: 0;
    }

    .contact-block p,
    .contact-hours li,
    .contact-field input,
    .contact-field textarea,
    .contact-radio {
        font-size: 16px;
        line-height: 22px;
    }

    .contact-heading {
        font-size: 19px;
        line-height: 25px;
        letter-spacing: 1.2px;
        margin-bottom: 0px;
    }

    .contact-hours li {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 6px 0;
    }

    .contact-map {
        margin-top: 15px;
    }

    .contact-map .contact-heading {
        margin-bottom: 20px;
    }

    .contact-map-frame {
        aspect-ratio: 16 / 10;
        width: 100%;
    }

    /* —— Tầng 2: Form gửi tin nhắn tách biệt riêng một khung —— */
    .contact-form-panel {
        position: relative;
        padding: 40px 15px  !important;
        margin-top: 40px !important;
        width: 100%;
        box-sizing: border-box;
        background: #e8e6e1 !important;
        border: 1px solid #8D6E5180 !important;
    }

    .contact-form-panel .contact-heading {
        margin-bottom: 20px;
    }
    .contact-form{
        gap:20px;
    }

    .contact-field {
        margin-bottom: 0px;
    }

    .contact-field-message {
        margin-bottom: 0;
    }

    fieldset.contact-needs {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .contact-needs legend {
        margin-bottom: 14px;
        padding-bottom: 8px !important;
        font-size: 12px;
        letter-spacing: 1.2px;
    }
.contact-field--slide[data-placeholder]::after{
    font-size: 12px;
}
.contact-radio input{
    margin:0;
}
    .contact-needs-list {
        flex-direction: column;
        gap: 12px;
    }

    .contact-actions {
        margin-top: 0;
        margin-bottom: 0 !important;
        justify-content: stretch;
    }

    .contact-actions .button {
        width: 100%;
    }
    fieldset.contact-needs{
        margin: 0;
    }
    .contact-grid{
        padding:0;
    }
}