/* Wrapper */
#nexir-reservation-wrapper {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 1rem;
}

/* ── Header & Stepper ── */
.nexir-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.nexir-subtitle {
    font-size: 1.05rem;
    color: #4b5563;
    margin: 0 0 0.35rem;
    letter-spacing: 0.01em;
}

.nexir-subtitle strong {
    color: #1f2937;
}

.nexir-description {
    font-size: 0.88rem;
    color: #9ca3af;
    margin: 0 0 1.75rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.nexir-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 540px;
    margin: 0 auto;
}

.nexir-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nexir-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f3f4f6;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nexir-step--active .nexir-step-dot {
    background: #635bff;
    color: #fff;
    border-color: #635bff;
    box-shadow: 0 2px 8px rgba(99, 91, 255, 0.25);
}

.nexir-step--done .nexir-step-dot {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.nexir-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.4s ease;
}

.nexir-step--active .nexir-step-label {
    color: #4b5563;
}

.nexir-step--done .nexir-step-label {
    color: #065f46;
}

.nexir-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    min-width: 40px;
    max-width: 80px;
    margin: 0 0.25rem;
    margin-bottom: 1.5rem;
    border-radius: 1px;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nexir-step-line--active {
    background: #635bff;
}

.nexir-step-line--done {
    background: #10b981;
}

@media (max-width: 480px) {
    .nexir-stepper {
        max-width: 100%;
    }
    .nexir-step-dot {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }
    .nexir-step-label {
        font-size: 0.68rem;
    }
    .nexir-step-line {
        min-width: 24px;
    }
    .nexir-description {
        font-size: 0.82rem;
    }
}

/* ── 3-column grid ── */

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

@media (max-width: 991px) {
    .nexir-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .nexir-grid {
        grid-template-columns: 1fr;
    }
}

/* Columns */
.nexir-col {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
}

/* Fieldsets */
.nexir-fieldset {
    border: none;
    margin: 0;
}

.nexir-legend {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    width: 100%;
}

.nexir-field {
    margin-bottom: 1.25rem;
}

.nexir-field:last-child {
    margin-bottom: 0;
}

.nexir-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

.nexir-required {
    color: #ef4444;
}

.nexir-field input[type="text"],
.nexir-field input[type="email"],
.nexir-field input[type="tel"],
.nexir-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.nexir-field input[type="text"]:focus,
.nexir-field input[type="email"]:focus,
.nexir-field input[type="tel"]:focus,
.nexir-field textarea:focus {
    border-color: #635bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.nexir-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Amount cards */
.nexir-amounts {
    display: flex;
    gap: 0.75rem;
}

.nexir-amount-card {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    font-weight: 600 !important;
    margin-bottom: 0;
}

.nexir-amount-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nexir-amount-card--selected,
.nexir-amount-card:has(input:checked) {
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.nexir-amount-label {
    font-size: 1.1rem;
    color: #333;
}

/* Payment Element */
#payment-element {
    padding: 0.5rem 0;
    min-height: 40px;
}

/* Legal checkbox */
.nexir-legal {
    margin-top: 0.5rem;
}

.nexir-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400 !important;
    cursor: pointer;
}

.nexir-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #635bff;
    width: 16px;
    height: 16px;
}

.nexir-checkbox-label span {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.nexir-checkbox-label a {
    color: #635bff;
    text-decoration: underline;
}

/* Submit button */
.nexir-submit {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    background-color: #635bff;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nexir-submit:hover {
    background-color: #4b44d4;
}

.nexir-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.nexir-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nexir-spin 0.7s linear infinite;
}

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

/* Error */
.nexir-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Success */
.nexir-success {
    text-align: center;
    padding: 3rem 1rem;
}

.nexir-success-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 2rem;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.nexir-success h2 {
    color: #065f46;
    margin-bottom: 0.5rem;
}

.nexir-success p {
    color: #6b7280;
}
