
:root {
    --primary: #f4ad36;
    --primary-dark: #dc8d17;
    --navy: #101a2b;
    --navy-light: #19273c;
    --text: #182235;
    --muted: #778195;
    --white: #ffffff;
    --border: #e5e9f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
}

/* Demo background */
.demo-content {
    min-height: 100vh;
    padding: 100px 8%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background:
        linear-gradient(120deg, rgba(10, 20, 35, .94),
        rgba(10, 20, 35, .65)),
        url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1800&q=85")
        center / cover;
    color: white;
}

.eyebrow,
.brand-tag,
.section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
}

.demo-content h1 {
    max-width: 750px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(45px, 7vw, 82px);
    line-height: 1.05;
    margin: 18px 0;
    text-transform: uppercase;
}

.demo-content h1 span {
    color: var(--primary);
}

.demo-content p {
    max-width: 520px;
    line-height: 1.8;
    color: #d5dce7;
}

.open-enquiry {
    margin-top: 24px;
    padding: 15px 24px;
    background: var(--primary);
    border: none;
    border-radius: 5px;
    color: #172033;
    font-weight: 800;
    cursor: pointer;
}

/* Overlay */
.enquiry-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(5, 12, 24, 0.76);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
    overflow-y: auto;
}

.enquiry-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Main popup */
.enquiry-modal {
    width: min(900px, 100%);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
    transform: translateY(25px) scale(.97);
    transition: transform .35s ease;
}

.enquiry-overlay.is-open .enquiry-modal {
    transform: translateY(0) scale(1);
}

/* Close button */
.popup-close {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #e7eaf0;
    border-radius: 50%;
    background: white;
    color: #344054;
    cursor: pointer;
    transition: .2s ease;
}

.popup-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

/* Left branding */
.popup-brand {
    min-height: 540px;
    padding: 36px 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    background:
        radial-gradient(circle at 15% 80%,
        rgba(244, 173, 54, .15), transparent 35%),
        linear-gradient(150deg, #1a2b43, #0b1423);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    letter-spacing: 1px;
    font-weight: 600;
}

.brand-logo strong {
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--primary);
    border-radius: 8px;
    color: var(--navy);
    font-size: 22px;
}

.brand-content {
    margin: 35px 0;
}

.brand-tag {
    font-size: 9px;
    letter-spacing: 1.5px;
}

.brand-content h2 {
    margin: 15px 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 43px;
    line-height: 1.08;
    text-transform: uppercase;
}

.brand-content h2 span {
    color: var(--primary);
}

.brand-content > p {
    font-size: 12px;
    line-height: 1.9;
    color: #b8c3d4;
}

.brand-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 19px;
    font-size: 11px;
    line-height: 1.6;
    color: #e1e7f0;
}

.brand-feature i {
    color: var(--primary);
    font-size: 15px;
}

.brand-footer {
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,.13);
    font-size: 10px;
    color: #b8c3d4;
}

.brand-footer i {
    color: var(--primary);
    margin-right: 5px;
}

/* Right form panel */
.popup-form-panel {
    padding: 43px 38px 28px;
}

.form-heading {
    margin-bottom: 25px;
}

.form-heading h2,
.success-screen h2 {
    margin: 10px 0 8px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 35px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--navy);
}

.form-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #273246;
}

.form-group label span {
    color: #e04444;
}

.input-wrap {
    position: relative;
}

.input-wrap > i {
    position: absolute;
    top: 15px;
    left: 14px;
    font-size: 16px;
    color: #909aab;
    pointer-events: none;
}

.input-wrap input,
.input-wrap textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 7px;
    outline: none;
    background: #f9fafc;
    padding: 14px 13px 14px 42px;
    color: var(--text);
    font: inherit;
    font-size: 12px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.input-wrap input {
    height: 46px;
}

.input-wrap textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.7;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
    border-color: var(--primary-dark);
    background: white;
    box-shadow: 0 0 0 3px rgba(244, 173, 54, .14);
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
    color: #a0a8b6;
}

.textarea-wrap > i {
    top: 14px;
}

.field-hint {
    display: block;
    margin-top: 7px;
    color: #8a94a5;
    font-size: 10px;
}

.field-hint i {
    margin-right: 3px;
    color: #4d9875;
}

/* Submit button */
.submit-enquiry,
.success-close {
    width: 100%;
    min-height: 49px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: none;
    border-radius: 7px;
    background: var(--primary);
    color: #172033;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.submit-enquiry:hover,
.success-close:hover {
    background: #ffc45f;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(244, 173, 54, .22);
}

.submit-enquiry:disabled {
    opacity: .7;
    cursor: wait;
}

.form-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    text-align: center;
    font-size: 10px;
    color: var(--muted);
}

.form-note i {
    color: #4d9875;
}

.form-message {
    font-size: 12px;
    color: #b42318;
    text-align: center;
}

/* Success state */
.success-screen {
    padding: 35px 0 20px;
    text-align: center;
}

.success-screen[hidden] {
    display: none !important;
}

.success-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e7f7ed;
    color: #208653;
    font-size: 32px;
    animation: successPop .45s ease both;
}

.success-screen h2 {
    font-size: 43px;
}

.success-screen > p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.success-screen > p strong {
    color: var(--navy);
}

.success-notice {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 25px 0;
    padding: 15px;
    text-align: left;
    border: 1px solid #f2d7a7;
    border-radius: 8px;
    background: #fffaf0;
    color: #5c4b2d;
    font-size: 12px;
    line-height: 1.7;
}

.success-notice i {
    color: var(--primary-dark);
    font-size: 22px;
}

.success-close {
    margin-top: 10px;
}

/* Animations */
@keyframes successPop {
    from {
        opacity: 0;
        transform: scale(.6);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 650px) {
    .enquiry-overlay {
        padding: 12px;
        align-items: center;
    }

    .enquiry-modal {
        width: 100%;
        max-height: calc(100dvh - 24px);
        display: block;
        border-radius: 12px;
    }

    .popup-brand {
        min-height: auto;
        padding: 19px 20px 17px;
    }

    .brand-logo {
        font-size: 13px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 19px;
    }

    .brand-content {
        margin: 20px 0 5px;
    }

    .brand-content h2 {
        margin: 8px 0;
        font-size: 30px;
    }

    .brand-content > p {
        margin: 7px 0;
        font-size: 11px;
        line-height: 1.6;
    }

    .brand-feature {
        display: none;
    }

    .brand-footer {
        display: none;
    }

    .popup-form-panel {
        padding: 23px 20px 20px;
    }

    .form-heading {
        margin-bottom: 19px;
    }

    .form-heading h2 {
        font-size: 30px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .input-wrap input {
        height: 44px;
    }

    .input-wrap textarea {
        min-height: 75px;
    }

    .popup-close {
        top: 12px;
        right: 12px;
        width: 31px;
        height: 31px;
    }

    .success-screen {
        padding: 20px 0 5px;
    }
}

@media (max-width: 360px) {
    .popup-form-panel {
        padding: 18px 15px;
    }

    .popup-brand {
        padding: 15px;
    }

    .form-heading h2 {
        font-size: 27px;
    }
}

/* Respect accessibility settings */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
