/* Page Header */
.page-header {
    padding: 180px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 20%, rgba(198, 255, 0, .04), transparent);
    pointer-events: none;
}

.page-ew {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid rgba(198, 255, 0, .22);
    background: rgba(198, 255, 0, .07);
    margin-bottom: 24px;
}

.page-ew span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-header .display {
    margin-bottom: 16px;
}

.page-sub {
    font-size: 18px;
    color: var(--ink2);
}

/* Page Content */
.page-content {
    padding: 60px 0 120px;
}

.legal-block {
    margin-bottom: 48px;
}

.legal-block h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ink);
}

.legal-block p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink2);
}

.legal-block a {
    color: var(--lime);
    text-decoration: none;
}

.legal-block a:hover {
    text-decoration: underline;
}

.legal-block ul {
    list-style: none;
    margin-top: 12px;
}

.legal-block ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--ink2);
    line-height: 1.6;
}

.legal-block ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--lime);
}

/* Contact Page */
.contact-section {
    padding: 60px 0 120px;
}

.contact-info {
    grid-column: 1/5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--r2);
    padding: 28px;
}

.contact-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 16px;
}

.contact-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink3);
    margin-bottom: 8px;
}

.contact-value {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    display: block;
}

.contact-value:hover {
    color: var(--lime);
}

.contact-form-wrapper {
    grid-column: 6/13;
    position: relative;
}

.contact-form {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--r3);
    padding: 40px;
}

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

.form-group.full {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--line2);
    border-radius: 12px;
    color: var(--ink);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 4px var(--lime-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink3);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239898A8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .bprice {
    width: 100%;
    justify-content: center;
}

.btn-loading {
    display: none;
}

.contact-form.submitting .btn-text {
    display: none;
}

.contact-form.submitting .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-form.submitting .btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-success {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--r3);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.form-success.show {
    display: flex;
}

.form-success .success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--lime-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--lime);
    margin-bottom: 24px;
}

.form-success h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--ink2);
    font-size: 16px;
}

/* Mini CTA */
.mini-cta {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--line);
}

.mini-cta .h1 {
    margin-bottom: 16px;
}

.mini-cta p {
    color: var(--ink2);
    font-size: 18px;
    margin-bottom: 32px;
}

/* Login Page */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}

.login-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(198, 255, 0, .04), transparent);
    pointer-events: none;
}

.login-container {
    max-width: 440px;
    margin: 0 auto;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--r3);
    padding: 48px 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--lime-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.login-icon svg {
    width: 28px;
    height: 28px;
    color: var(--lime);
}

.login-header h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--ink2);
    font-size: 15px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .bprice {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.login-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.login-success.show {
    display: block;
}

.login-form.hidden {
    display: none;
}

.success-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lime-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-check svg {
    width: 28px;
    height: 28px;
    color: var(--lime);
}

.login-success h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-success p {
    color: var(--ink2);
    font-size: 15px;
    margin-bottom: 8px;
}

.login-success p strong {
    color: var(--lime);
}

.login-note {
    font-size: 13px !important;
    color: var(--ink3) !important;
    margin-bottom: 20px !important;
}

.login-success .bsm {
    margin: 0 auto;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--ink3);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.login-help {
    text-align: center;
}

.login-help p {
    color: var(--ink2);
    font-size: 14px;
    margin-bottom: 8px;
}

.login-link {
    color: var(--lime);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.login-link:hover {
    text-decoration: underline;
}

.login-footer-note {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.login-footer-note p {
    font-size: 12px;
    color: var(--ink3);
    text-align: center;
    line-height: 1.6;
}

.login-form.submitting .btn-text {
    display: none;
}

.login-form.submitting .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-form.submitting .btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/* Responsive */
@media(max-width: 1024px) {
    .contact-info {
        grid-column: 1/-1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-card {
        flex: 1;
        min-width: 200px;
    }

    .contact-form-wrapper {
        grid-column: 1/-1;
        margin-top: 32px;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-container {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--r3);
    padding: 40px;
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: modalIn .3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.95) translateY(10px);
    }

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--ink3);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background .2s, color .2s;
}

.modal-close:hover {
    background: var(--bg3);
    color: var(--ink);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--ink2);
    font-size: 14px;
}

.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form .full-width {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.modal-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.modal-success.show {
    display: block;
}

.modal-form.hidden {
    display: none;
}

.modal-success .success-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lime-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--lime);
    margin: 0 auto 20px;
}

.modal-success h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-success p {
    color: var(--ink2);
    font-size: 14px;
}

.modal-form.submitting .btn-text {
    display: none;
}

.modal-form.submitting .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-form.submitting .btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@media(max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }

    .login-container {
        margin: 0 16px;
        padding: 32px 24px;
    }

    .contact-card {
        min-width: 100%;
    }

    .contact-form {
        padding: 28px 20px;
    }
}