@charset "UTF-8";

/**
 * Pre-Order page — Apple-inspired glass, mobile-first
 * Used by: resources/views/pre_order.blade.php
 */

.nx-preorder-page {
    --nx-pre-glass: rgba(255, 255, 255, 0.72);
    --nx-pre-glass-border: rgba(255, 255, 255, 0.35);
    --nx-pre-blur: 20px;
    --nx-pre-radius: 1rem;
    --nx-pre-radius-lg: 1.25rem;
    font-family: var(--font-system, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    padding-bottom: 3rem;
}

.nx-preorder-page .nx-preorder-inner {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .nx-preorder-page .nx-preorder-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Hero */
.nx-preorder-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

@media (min-width: 768px) {
    .nx-preorder-hero {
        padding: 2.75rem 0 2rem;
    }
}

.nx-preorder-hero__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--primary, #0d6efd);
    background: rgba(13, 110, 253, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.nx-preorder-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary, #1d1d1f);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.nx-preorder-hero__lead {
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--text-secondary, #6e6e73);
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}

.nx-preorder-hero__points {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 28rem;
    text-align: left;
}

.nx-preorder-hero__points li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text-primary, #1d1d1f);
}

.nx-preorder-hero__points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary, #0d6efd);
    opacity: 0.85;
}

/* Glass cards */
.nx-preorder-glass {
    background: var(--nx-pre-glass);
    backdrop-filter: blur(var(--nx-pre-blur));
    -webkit-backdrop-filter: blur(var(--nx-pre-blur));
    border: 1px solid var(--nx-pre-glass-border);
    border-radius: var(--nx-pre-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* How it works */
.nx-preorder-steps {
    margin-bottom: 2rem;
}

.nx-preorder-steps__head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.nx-preorder-steps__title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary, #1d1d1f);
    margin: 0 0 0.35rem;
}

@media (min-width: 768px) {
    .nx-preorder-steps__title {
        font-size: 1.375rem;
    }
}

.nx-preorder-steps__sub {
    font-size: 0.875rem;
    color: var(--text-secondary, #6e6e73);
    margin: 0;
}

.nx-preorder-steps__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .nx-preorder-steps__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.nx-preorder-step {
    padding: 1.25rem 1rem;
    text-align: center;
    border-radius: var(--nx-pre-radius);
}

.nx-preorder-step__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary, #0d6efd);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nx-preorder-step__icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.nx-preorder-step__num {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-secondary, #86868b);
    margin-bottom: 0.35rem;
}

.nx-preorder-step__label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.nx-preorder-step__text {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary, #6e6e73);
    margin: 0;
}

/* Form card */
.nx-preorder-form-wrap {
    margin-bottom: 2rem;
}

.nx-preorder-form-wrap__head {
    padding: 1.25rem 1.25rem 0;
    text-align: center;
}

@media (min-width: 768px) {
    .nx-preorder-form-wrap__head {
        padding: 1.5rem 1.75rem 0;
    }
}

.nx-preorder-form-wrap__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary, #1d1d1f);
    margin: 0 0 0.35rem;
}

.nx-preorder-form-wrap__hint {
    font-size: 0.8125rem;
    color: var(--text-secondary, #6e6e73);
    margin: 0 0 1rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.nx-preorder-form {
    padding: 0 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

@media (min-width: 768px) {
    .nx-preorder-form {
        padding: 0 1.75rem 1.75rem;
    }
}

/* Fieldset + legend: avoid legend float / min-width bugs that stack the submit button over inputs */
.nx-preorder-form fieldset {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.nx-preorder-form fieldset > legend:not(.visually-hidden) {
    float: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 0.75rem;
    font-size: inherit;
    line-height: inherit;
}

.nx-preorder-form .nx-pre-field {
    margin-bottom: 1.125rem;
}

.nx-preorder-form fieldset + fieldset {
    margin-top: 0.25rem;
}

.nx-preorder-form .nx-pre-field--address {
    margin-bottom: 0;
}

.nx-preorder-form .nx-pre-field--address textarea.form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.nx-preorder-form label.nx-pre-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);
    margin-bottom: 0.35rem;
}

.nx-preorder-form .nx-pre-label-optional {
    font-weight: 500;
    color: var(--text-secondary, #86868b);
}

.nx-preorder-form .nx-pre-hint {
    font-size: 0.75rem;
    color: var(--text-secondary, #86868b);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.nx-preorder-form .form-control,
.nx-preorder-form textarea.form-control {
    border-radius: 0.625rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    min-height: 48px;
    padding: 0.625rem 0.875rem;
}

.nx-preorder-form textarea.form-control {
    min-height: 6.5rem;
    resize: vertical;
}

.nx-preorder-form .form-control:focus {
    border-color: var(--primary, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    background: #fff;
}

.nx-preorder-form .is-invalid {
    border-color: #dc3545;
}

.nx-preorder-form .invalid-feedback {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .nx-preorder-form .nx-pre-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

.nx-preorder-form input[type='file'].nx-pre-file {
    min-height: 48px;
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Padding (not margin alone) prevents collapse with fieldset; keeps button below address field */
.nx-preorder-form__actions {
    flex-shrink: 0;
    width: 100%;
    margin-top: 0;
    padding-top: 1.25rem;
    margin-bottom: 0;
    box-sizing: border-box;
    clear: both;
}

@media (max-width: 767.98px) {
    .nx-preorder-form__actions {
        padding-top: 1.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
}

@media (min-width: 768px) {
    .nx-preorder-form__actions {
        padding-top: 1rem;
        margin-top: 0.75rem;
    }
}

.nx-preorder-form .nx-pre-submit {
    width: 100%;
    min-height: 52px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.nx-preorder-alert {
    border-radius: var(--nx-pre-radius);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

/* Graphic strip (mobile: vertical flow) */
.nx-preorder-graphic {
    display: none;
}

@media (min-width: 992px) {
    .nx-preorder-graphic {
        display: block;
        margin-bottom: 2rem;
    }

    .nx-preorder-graphic__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 1.5rem 2rem;
    }

    .nx-preorder-graphic__node {
        flex: 1;
        text-align: center;
        max-width: 8rem;
    }

    .nx-preorder-graphic__node svg {
        width: 100%;
        max-width: 5rem;
        height: auto;
        margin: 0 auto;
        opacity: 0.9;
    }

    .nx-preorder-graphic__arrow {
        flex: 0 0 2rem;
        color: var(--text-secondary, #c7c7cc);
    }

    .nx-preorder-graphic__caption {
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--text-secondary, #86868b);
        margin-top: 0.5rem;
    }
}
