*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #071226 0%, #061826 100%);
    color: #e6eef6;
}

.sahop-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.sahop-shell {
    width: 100%;
    max-width: 1180px;
    background: rgba(8, 12, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: clamp(22px, 4vw, 44px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.sahop-nextsteps-wrap {
    width: 100%;
    margin-bottom: 28px;
}

.sahop-form-card {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.sahop-form-header {
    margin-bottom: 26px;
}

.sahop-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffd000;
    color: #000;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sahop-form-header h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 1000;
}

.sahop-form-header p {
    margin: 0;
    max-width: 780px;
    color: #c7d7ea;
    font-size: 18px;
    line-height: 1.5;
}

.sahop-referrer-notice {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 208, 0, 0.12);
    border: 1px solid rgba(255, 208, 0, 0.35);
    color: #fff7c2;
    font-weight: 800;
}

.sahop-referrer-notice strong {
    color: #ffd000;
}

.sahop-form {
    width: 100%;
}

.sahop-honeypot {
    display: none !important;
}

.sahop-form-group {
    width: 100%;
    margin-bottom: 20px;
}

.sahop-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 900;
    font-size: 18px;
}

.sahop-form-group label span {
    color: #dbeafe;
    font-weight: 800;
}

.sahop-form-group input {
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #eaf2ff;
    color: #020617;
    font-size: 20px;
    outline: none;
}

.sahop-form-group input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.22);
}

.sahop-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    border: 0;
    border-radius: 10px;
    background: #06b6d4;
    color: #011219;
    font-size: 20px;
    font-weight: 1000;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.sahop-submit-btn:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.sahop-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.sahop-small-print {
    margin: 18px 0 0;
    color: #9fb0c4;
    font-size: 14px;
}

.sahop-powered {
    margin: 24px 0 0;
    color: #93b1c3;
    font-size: 13px;
    text-align: center;
}

/* =========================================================
   Popup System
========================================================= */

.sahop-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.72);
}

.sahop-popup.is-visible {
    display: flex;
}

.sahop-popup-card {
    width: min(100%, 760px);
    border-radius: 22px;
    padding: clamp(24px, 4vw, 42px);
    background: #ffffff;
    color: #020617;
    border: 1px solid #dbe3ef;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.sahop-popup-card h2 {
    margin: 0 0 16px;
    color: #020617;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.sahop-popup-card p {
    margin: 0 0 24px;
    color: #1e293b;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 700;
}

.sahop-popup-error {
    border-top: 8px solid #f59e0b;
}

.sahop-popup-success {
    border-top: 8px solid #16a34a;
}

.sahop-popup-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.sahop-popup-btn,
.sahop-popup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border: 0;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
}

.sahop-popup-btn:hover,
.sahop-popup-link:hover {
    filter: brightness(1.1);
}

.sahop-popup-secondary {
    background: #475569;
}

/* =========================================================
   PMN Content Modal
========================================================= */

.pmn-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pmn-modal.show {
    display: flex;
    opacity: 1;
}

.pmn-modal-content {
    background: #0b1220;
    padding: 20px;
    border-radius: 12px;
    width: 95%;
    max-width: 1400px;
    height: 95%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.pmn-modal-iframe {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
}

.pmn-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #d9534f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    font-weight: bold;
    text-align: center;
}

.pmn-modal-title {
    color: #fff;
    margin: 0;
    padding-right: 44px;
    font-size: 1.5em;
}

/* =========================================================
   nextsteps.php Support
========================================================= */

.pmn-wrapper,
.pmn-sections,
.pmn-section,
.pmn-link {
    box-sizing: border-box;
}

.pmn-sections {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    align-items: start;
}

.pmn-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.pmn-highlight {
    border: 2px solid rgba(6, 182, 212, 0.25);
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.04), rgba(245, 158, 11, 0.02));
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.06);
    transform: translateY(-4px);
}

.pmn-section h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #ffffff;
}

.pmn-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pmn-section ul li {
    width: 100%;
    margin: 0;
}

.pmn-link {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(90deg, #06b6d4, #f59e0b);
    color: #011219;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 6px 12px rgba(2, 6, 23, 0.45);
}

.pmn-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.55);
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1200px) {
    .pmn-sections {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .pmn-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sahop-page {
        padding: 14px;
        align-items: flex-start;
    }

    .sahop-shell {
        padding: 20px;
        border-radius: 18px;
    }

    .sahop-form-header h1 {
        font-size: clamp(34px, 12vw, 48px);
    }

    .sahop-form-header p {
        font-size: 16px;
    }

    .sahop-form-group label {
        font-size: 16px;
    }

    .sahop-form-group input {
        min-height: 54px;
        font-size: 18px;
    }

    .sahop-submit-btn {
        font-size: 18px;
    }

    .pmn-sections {
        grid-template-columns: 1fr;
    }

    .sahop-popup-card {
        padding: 24px 18px;
    }

    .sahop-popup-card p {
        font-size: 17px;
    }
}