@font-face {
    font-family: 'HPE Graphik';
    src: url('assets/fonts/HPE%20Graphik-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HPE Graphik';
    src: url('assets/fonts/HPE%20Graphik-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HPE Graphik';
    src: url('assets/fonts/HPE%20Graphik-Semibold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color: #111827;
    background: #ffffff;
    font-family: 'HPE Graphik';
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
}

main,
section {
    background: #ffffff;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select {
    font: inherit;
}

.page-shell {
    max-width: 1260px;
    margin: 0 auto;
    /* padding: 2rem 1.5rem 4rem; */
}

.offer-hero {
    background: #ffffff;
    /* border-radius: 32px; */
    /* padding: 2rem; */
    /* box-shadow: 0 28px 90px rgba(15, 23, 42, 0.08); */
    overflow: hidden;
}

.top-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1.5rem;
}

.logo-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #ffffff;
    background: #012d7b;
}

.logo-hp .logo-mark {
    background: #012d7b;
}

.logo-ms .logo-mark {
    background: #f5f5f5;
    color: #1f2937;
}

.logo-hp p,
.logo-hp strong,
.logo-ms strong {
    margin: 0;
    line-height: 1.1;
}

.logo-hp p {
    font-size: 0.95rem;
    color: #334155;
}

.logo-hp strong,
.logo-ms strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.logo-divider {
    width: 1px;
    height: 48px;
    background: #e2e8f0;
}

.hero-image {
    max-width: 420px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
}

.content-panel {
    position: relative;
    margin-top: 1.55rem;
    padding-right: 2rem;
    padding-left: 2rem;
    padding-bottom: 5.5rem;
}

.content-panel h1 {
    margin: 0;
    font-size: clamp(3rem, 4vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.description {
    margin: 0;
    color: #111111;
    font-size: 1.02rem;
    line-height: 1.35;
}

.description.highlight {
    margin-top: 1.7rem;
    color: #111111;
    font-size: 1.2rem;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.benefit-column h2 {
    margin: 0 0 0.8rem;
    padding: 0.35rem 1rem;
    background: #d9d9d9;
    color: #104BFF;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.2;
}

.benefit-column ul {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding-left: 1.35rem;
}

.benefit-column li {
    color: #111111;
    font-size: 1rem;
    line-height: 1.25;
    padding-left: 0.2rem;
}

.content-panel::before {
    position: absolute;
    left: 2rem;
    bottom: 1rem;
    width: min(24vw, 300px);
    aspect-ratio: 892 / 372;
    background: url('assets/img/shape1.png') center / contain no-repeat;
    content: '';
}

.content-panel::after {
    display: none;
}

.lead-form-section {
    margin: 0 2rem 2.5rem;
    background: #f3f3f3;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

.lead-form-copy {
    width: min(920px, 100%);
    margin: 0 auto 2rem;
    color: #111111;
    font-size: 1.08rem;
    line-height: 1.55;
    text-align: center;
}

.lead-form-copy p {
    margin: 1.25rem 0 0;
    color: #111111;
}

.lead-form-copy h2 {
    width: min(650px, 100%);
    margin: 0 auto;
    padding: 0.35rem 1.2rem;
    background: #104BFF;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.lead-form-copy .lead-highlight {
    margin-top: 0.75rem;
    color: #104BFF;
}

.offer-form {
    background: #f3f3f3;
    padding: 2.8rem 2.5rem 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 2rem;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.field {
    display: grid;
    gap: 0.5rem;
}

.field span {
    font-weight: 700;
    color: #111111;
}

.required-mark {
    color: #dc2626;
    font-weight: 800;
}

.field input,
.field select {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1rem;
    border: 1px solid #111111;
    border-radius: 4px;
    background: #ffffff;
    color: #111111;
}

.field input:focus,
.field select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.select-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #0f172a 50%), linear-gradient(135deg, #0f172a 50%, transparent 50%), linear-gradient(to right, #cbd5e1, #cbd5e1);
    background-position: calc(100% - 1rem) calc(1rem + 2px), calc(100% - 0.55rem) calc(1rem + 2px), 100% 100%;
    background-size: 0.45rem 0.45rem, 0.45rem 0.45rem, 1px 1.5rem;
    background-repeat: no-repeat;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: min(1120px, 100%);
    margin: 1.35rem auto 0;
}

.terms-heading {
    width: 100%;
    margin: 1.4rem 0 0;
    color: #111111;
    font-size: 1rem;
    font-weight: 700;
}

.consent-field {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #111111;
    font-size: 1rem;
    line-height: 1.35;
}

.consent-field input {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    margin-top: 0;
    accent-color: #0f4bff;
}

.submit-button {
    width: min(220px, 100%);
    border: none;
    background: #0f4bff;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 1.12rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
}

.form-status {
    margin: 0;
    min-height: 1.2rem;
    font-size: 0.98rem;
    color: #065f46;
    text-align: center;
}

.otp-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.58);
}

.otp-modal.is-visible {
    display: flex;
}

.otp-dialog {
    position: relative;
    width: min(420px, 100%);
    padding: 1.75rem;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.otp-dialog h2 {
    margin: 0 2rem 0.75rem 0;
    color: #0f172a;
    font-size: 1.45rem;
}

.otp-message,
.otp-status {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.otp-field {
    margin-top: 1.25rem;
}

.otp-field input {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.35rem;
}

.otp-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.otp-actions .submit-button {
    width: 100%;
}

.otp-secondary-button,
.otp-close {
    border: none;
    background: transparent;
    cursor: pointer;
}

.otp-secondary-button {
    color: #0f4bff;
    font-weight: 700;
}

.otp-close {
    position: absolute;
    top: 0.85rem;
    right: 0.9rem;
    color: #475569;
    font-size: 1.6rem;
    line-height: 1;
}

.voucher-body {
    background: #ffffff;
}

.voucher-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.voucher-header {
    overflow: hidden;
    background: #ffffff;
}

.voucher-header img {
    width: 100%;
}

.voucher-success {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 2.5rem;
    margin: 1.5rem 0 2rem;
    padding: 4.8rem 2rem 4rem;
    overflow: hidden;
    background: #f3f3f3;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    text-align: center;
}

.voucher-success::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 110px;
    /* background: url('assets/img/shape1.png') right top / 520px auto no-repeat; */
    content: '';
}

.voucher-success p {
    margin: 0;
    color: #111111;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.35;
}

.voucher-download-button {
    display: grid;
    grid-template-columns: 1fr 76px;
    align-items: center;
    gap: 0;
    width: min(690px, 100%);
    min-height: 72px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #111111;
    border-radius: 6px;
    background: #104BFF;
    color: #ffffff;
    cursor: pointer;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.voucher-download-button span:last-child {
    order: 1;
    padding: 0.9rem 1.5rem;
}

.voucher-download-button .voucher-download-icon {
    order: 2;
}

.voucher-download-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.voucher-download-icon {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 72px;
    border-left: 1px solid #111111;
    background: linear-gradient(#ffffff, #ffffff) center 18px / 4px 28px no-repeat;
}

.voucher-download-icon::before {
    position: absolute;
    left: 50%;
    top: 18px;
    width: 22px;
    height: 22px;
    border-right: 4px solid #ffffff;
    border-bottom: 4px solid #ffffff;
    content: '';
    transform: translateX(-50%) rotate(45deg);
}

.voucher-download-icon::after {
    position: absolute;
    left: 50%;
    bottom: 17px;
    width: 32px;
    height: 16px;
    border-right: 4px solid #ffffff;
    border-bottom: 4px solid #ffffff;
    border-left: 4px solid #ffffff;
    content: '';
    transform: translateX(-50%);
}

.voucher-note {
    max-width: 1120px;
    color: #111111 !important;
    font-size: clamp(1rem, 1.55vw, 1.45rem) !important;
    font-weight: 400 !important;
}

.voucher-pdf-source {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1200px;
    pointer-events: none;
}

.voucher-card {
    position: relative;
    width: min(100%, 1200px);
    margin: 0 auto;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

.voucher-card img {
    width: 100%;
}

.voucher-value {
    position: absolute;
    overflow: hidden;
    display: block;
    padding: 0 0.3%;
    background: #ffffff;
    color: #222222;
    font-family: 'HPE Graphik';
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.voucher-name {
    left: 10.4%;
    top: 41.6%;
    width: 19.8%;
    font-size: clamp(0.66rem, 1.45vw, 1.05rem);
}

.voucher-mobile {
    left: 41.4%;
    top: 41.6%;
    width: 15.6%;
    font-size: clamp(0.66rem, 1.45vw, 1.05rem);
}

.voucher-email {
    left: 11.7%;
    top: 50%;
    width: 18.5%;
    font-size: clamp(0.66rem, 1.45vw, 1.05rem);
}

.voucher-college {
    left: 43.5%;
    top: 50%;
    width: 14.1%;
    font-size: clamp(0.66rem, 1.45vw, 1.05rem);
}

.voucher-state {
    left: 9.9%;
    top: 58.3%;
    width: 20.3%;
    font-size: clamp(0.66rem, 1.45vw, 1.05rem);
}

.voucher-city {
    left: 36.7%;
    top: 58.3%;
    width: 20.6%;
    font-size: clamp(0.66rem, 1.45vw, 1.05rem);
}

.voucher-code {
    left: 5.2%;
    top: 74.2%;
    width: 27%;
    color: #1155cc;
    font-size: clamp(1.4rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
}

.voucher-footer-text {
    position: absolute;
    left: 5.3%;
    right: 5.3%;
    bottom: 2.3%;
    color: #222222;
    font-family: 'HPE Graphik';
    text-align: center;
}

.voucher-footer-text p {
    margin: 0.25rem 0 0;
    font-size: clamp(0.58rem, 1.45vw, 1.08rem);
    line-height: 1.25;
}

.voucher-footer-text p:first-child {
    font-weight: 700;
}

.not-found-body {
    min-height: 100vh;
    background: #f3f3f3;
}

.not-found-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background:
        linear-gradient(90deg, #104BFF 0 12px, transparent 12px),
        #f3f3f3;
}

.not-found-panel {
    position: relative;
    width: min(720px, 100%);
    padding: clamp(2rem, 6vw, 4rem);
    overflow: hidden;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.not-found-panel::after {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(210px, 45vw);
    aspect-ratio: 892 / 372;
    background: url('assets/img/shape1.png') center / contain no-repeat;
    content: '';
    opacity: 0.16;
}

.not-found-panel h1,
.not-found-panel h2,
.not-found-panel p {
    position: relative;
    z-index: 1;
}

.not-found-panel h1 {
    margin: 0;
    color: #104BFF;
    font-size: clamp(5rem, 18vw, 10rem);
    line-height: 0.85;
    font-weight: 700;
}

.not-found-panel h2 {
    margin: 1.5rem 0 0;
    color: #111111;
    font-size: clamp(1.5rem, 4vw, 2.35rem);
    line-height: 1.12;
}

.not-found-panel p {
    max-width: 520px;
    margin: 1rem 0 0;
    color: #111111;
    font-size: 1.08rem;
    line-height: 1.55;
}

@media print {
    .voucher-header,
    .voucher-success,
    #voucherStatus {
        display: none;
    }

    .voucher-page {
        max-width: none;
        padding: 0;
    }

    .voucher-pdf-source {
        position: static;
        width: auto;
    }

    .voucher-card {
        width: 100%;
        box-shadow: none;
    }
}

@media (max-width: 940px) {
    .top-bar {
        grid-template-columns: 1fr;
    }
    .hero-image {
        justify-self: center;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .page-shell {
        padding: 0px;
    }
    .offer-hero,
    .offer-form {
        padding: 1.5rem;
    }
    .content-panel {
        margin-top: 2rem;
        padding-right: 1rem;
        padding-left: 1rem;
        padding-bottom: 1rem;
    }
    .content-panel::before,
    .content-panel::after {
        display: none;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .lead-form-section {
        margin: 0 0 2rem;
    }
    .offer-form {
        padding: 1.5rem;
    }
    .lead-form-copy h2 {
        font-size: 1rem;
    }
    .consent-field input {
        width: 28px;
        height: 28px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .logo-list {
        justify-content: space-between;
    }
    .logo-divider {
        display: none;
    }
    .voucher-page {
        padding-inline: 0;
    }
    .voucher-success {
        margin: 1rem 0 2rem;
        padding: 4rem 1rem 3rem;
    }
    .voucher-success::before {
        width: 130px;
        height: 74px;
        background-size: 360px auto;
    }
    .voucher-download-button {
        grid-template-columns: 1fr 58px;
        padding: 0;
        font-size: 1.05rem;
    }
    .voucher-download-button span:last-child {
        padding: 0.85rem 1rem;
    }
    .voucher-download-icon {
        min-height: 58px;
    }
}
