:root {
    --page-bg: #f3f3f3;
    --heading: #757575;
    --body: #848484;
    --accent: #bf1c2d;
    --accent-dark: #a81727;
    --field-border: #d7848a;
    --overlay: rgba(114, 20, 32, 0.58);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: white;
    font-family: "Montserrat", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

a {
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(0, 0, 0, 0);
}

.page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:white;
}

/* LEFT SIDE */
.left-panel {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding-left: 48px;
    padding-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    position: absolute;
    top: 27px;
    left: 48px;
}

.logo {
    width: 132px;
    height: auto;
}

.content {
    position: absolute;
    left: 120px;
    /* top: 235px; */
    width: 520px;
}

.content h1 {
    margin: 0 0 18px;
    color: var(--heading);
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 4.1rem;
    line-height: 0.99;
    letter-spacing: -0.03em;
}

.content p {
    margin: 0 0 36px;
    max-width: 475px;
    color: var(--body);
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 400;
}

.notify-form {
    width: 478px;
}

.form-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 42px;
    border: 1px solid var(--field-border);
    border-radius: 4px;
    overflow: hidden;
    background: transparent;
}

.form-row input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #666;
    padding: 0 14px;
}

.form-row button {
    border: 0;
    background: var(--accent);
    color: #fff;
    width: 134px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-row button:hover {
    background: var(--accent-dark);
}

/* RIGHT SIDE */
.right-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 46.7%;
    height: 100%;   
    background-size: cover;
    background-position: center center;
    clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-overlay {
    position: absolute;
    inset: 0;
    /* background:
    linear-gradient(
      180deg,
      rgba(97, 20, 32, 0.52) 0%,
      rgba(123, 27, 40, 0.60) 50%,
      rgba(109, 23, 35, 0.58) 100%
    ); */
    background: #7214208f;
}

/* LARGE SCREENS */
@media (min-width: 1500px) {
    .content {
        left: 150px;
        /* top: 200px; */
        width: 540px;
    }

    .content h1 {
        font-size: 4.25rem;
    }
}

/* TABLET / SMALL DESKTOP */
@media (max-width: 1100px) {
    .left-panel {
        padding-left: 34px;
    }

    .logo-link {
        left: 34px;
        top: 26px;
    }

    .content {
        left: 90px;
        /* top: 210px; */
        width: 470px;
    }

    .content h1 {
        font-size: 3.55rem;
    }

    .notify-form {
        width: 430px;
    }

    .right-panel {
        width: 43%;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* MOBILE LAYOUT */
@media (max-width: 768px) {
    .page {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .left-panel {
        min-height: 60vh;
        padding: 0;
    }

    .logo-link {
        position: absolute;
        top: 28px;
        left: 42px;
    }

    .logo {
        width: 118px;
    }

    .content {
        position: absolute;
        left: 43px;
        top: 170px;
        width: calc(100% - 72px);
        max-width: 360px;
    }

    .content h1 {
        font-size: 3.15rem;
        line-height: 1;
        margin-bottom: 14px;
    }

    .content p {
        max-width: 320px;
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .notify-form {
        width: 100%;
        max-width: 355px;
    }

    .form-row {
        height: 31px;
        border-radius: 12px;
    }

    .form-row input {
        padding: 0 12px;
    }

    .form-row button {
        width: 100px;
        font-size: 0.88rem;
        border-radius: 12px;
    }

    .right-panel {
        position: relative;
        width: 100%;
        height: 42vh;
        margin-top: auto;
        clip-path: none;
        background-position: center center;
    }
}

/* THANK YOU POPUP */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.45);
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-box {
    background: #fff;
    border-radius: 12px;
    padding: 44px 48px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    animation: popIn 0.3s ease;
}

.popup-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-box h2 {
    margin: 0 0 10px;
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    color: var(--heading);
}

.popup-box p {
    margin: 0;
    color: var(--body);
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* SMALL MOBILE */
@media (max-width: 430px) {
    .logo-link {
        left: 30px;
        top: 30px;
    }

    .logo {
        width: 102px;
    }

    .content {
        left: 30px;
        top: 123px;
        width: calc(100% - 55px);
        max-width: 355px;
    }

    .content h1 {
        font-size: 2.7rem;
        letter-spacing: -0.02em;
    }

    .content p {
        max-width: 300px;
        font-size: 0.92rem;
        line-height: 1.48;
    }

    .notify-form {
        max-width: 354px;
    }

    .form-row {
        height: 31px;
    }

    .form-row button {
        width: 100px;
        font-size: 0.85rem;
    }

    .right-panel {
        height: 41vh;
    }
}