/* ================================
   First Class Experience - Check-in
   Brand Theme - AJA Como Se Já Fosse
   ================================ */

:root {
    /* Brand Colors - Verde Sofisticado AJA */
    --bg-primary: #0f1f1e;
    --bg-secondary: #152524;
    --bg-card: #1a2f2d;
    --bg-input: #1f3634;
    --border-color: #2a4240;
    --border-focus: #c9a962;

    --text-primary: #f5f5f0;
    --text-secondary: #a8b5b3;
    --text-muted: #6b7f7c;

    /* Accent - Dourado Elegante */
    --accent-primary: #c9a962;
    --accent-secondary: #b8954f;
    --accent-gold: #d4af37;
    --accent-silver: #c0c0c0;
    --accent-diamond: #e8f4f8;

    --error: #e57373;
    --warning: #ffb74d;
    --info: #81d4fa;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;

    /* Typography */
    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: var(--space-xl) 0 var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.logo-icon {
    width: 56px;
    height: 68px;
    background: transparent;
    border: 1.5px solid var(--accent-gold);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.logo-text {
    text-align: left;
}

.logo-title {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.logo-subtitle {
    display: block;
    font-size: 12px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: var(--space-xl);
}

.progress-bar {
    height: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-gold));
    border-radius: var(--radius-full);
    width: 20%;
    transition: width var(--transition-normal);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.step.active {
    color: var(--accent-gold);
    font-weight: 600;
}

.step.completed {
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Form Section */
.form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

input::placeholder {
    color: var(--text-muted);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 16px;
    padding-right: 48px;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 14px;
    color: var(--text-primary);
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: var(--accent-gold);
}

.radio-label input,
.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-gold);
}

.checkbox-label.required {
    background: transparent;
    border: none;
    padding: var(--space-sm) 0;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.btn {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-secondary));
    color: var(--bg-primary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-input);
    border-color: var(--text-muted);
}

.btn-large {
    padding: var(--space-lg);
    font-size: 18px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

/* Cards */
.confirm-card,
.info-card,
.form-card,
.terms-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.confirm-item,
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.confirm-item:last-child,
.info-item:last-child {
    border-bottom: none;
}

.confirm-label,
.info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.confirm-value,
.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.confirm-item.highlight {
    margin-top: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-silver,
.badge[data-type="Silver"] {
    background: var(--accent-silver);
    color: var(--bg-primary);
}

.badge-gold,
.badge[data-type="Gold"] {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.badge-diamond,
.badge[data-type="Diamond"] {
    background: var(--accent-diamond);
    color: var(--bg-primary);
}

/* Form Cards */
.form-card {
    margin-bottom: var(--space-lg);
}

.form-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* Terms Cards */
.terms-card {
    margin-bottom: var(--space-md);
}

.terms-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.terms-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.terms-card.highlight {
    border-color: var(--accent-gold);
    background: rgba(201, 169, 98, 0.08);
}

/* Alerts */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: var(--space-lg);
}

.alert-info {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: var(--info);
}

.alert-success {
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.3);
    color: var(--accent-gold);
}

.alert-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--error);
}

/* Success Screen */
.success-container {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-secondary));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--bg-primary);
    margin: 0 auto var(--space-xl);
}

.success-container h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.success-container > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.success-info {
    background: var(--bg-card);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.success-info h4 {
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.success-details {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.success-details p {
    margin-bottom: var(--space-sm);
    font-size: 14px;
}

.success-details p:last-child {
    margin-bottom: 0;
}

.success-footer {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Footer */
.footer {
    padding: var(--space-xl) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.text-error {
    color: var(--error);
}

/* Input Error State */
input.error,
select.error {
    border-color: var(--error);
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: var(--space-sm);
}

.country-select {
    width: 100px;
    flex-shrink: 0;
    padding-right: var(--space-lg);
}

.phone-input-group input {
    flex: 1;
}

/* Instagram Input Group */
.instagram-input-group {
    display: flex;
    align-items: stretch;
}

.instagram-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--text-secondary);
    font-size: 16px;
}

.instagram-input-group input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .container {
        padding: var(--space-md);
    }

    .section-header h2 {
        font-size: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .progress-steps {
        font-size: 10px;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
    }

    .radio-label,
    .checkbox-label {
        width: 100%;
    }
}
