/* Marriott Travelers - Main Stylesheet */

:root {
    --marriott-red: #BE1E2D;
    --marriott-dark-red: #8B1622;
    --marriott-gold: #C9A961;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --gray-dark: #2C2C2C;
    --white: #FFFFFF;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

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

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Avenir Next', 'Arial', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 3px solid var(--marriott-red);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 14px;
}

.nav a:hover {
    color: var(--marriott-red);
}

.user-info {
    background-color: var(--gray-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--gray-dark);
    font-weight: 600;
}

/* Auth Gate */
.auth-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--marriott-red) 0%, var(--marriott-dark-red) 100%);
}

.auth-card {
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 450px;
    width: 100%;
}

.program-title {
    font-size: 36px;
    color: var(--marriott-red);
    margin-bottom: 10px;
}

.tagline {
    color: var(--gray-dark);
    margin-bottom: 30px;
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form label {
    text-align: left;
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 14px;
}

.auth-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* Input Fields */
.input-field {
    padding: 12px 15px;
    border: 2px solid var(--gray-medium);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--marriott-red);
}

textarea.input-field {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--marriott-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--marriott-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(190, 30, 45, 0.3);
}

.btn-secondary {
    background-color: var(--marriott-gold);
    color: var(--gray-dark);
}

.btn-secondary:hover {
    background-color: #B89851;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--marriott-red);
    border: 2px solid var(--marriott-red);
}

.btn-outline:hover {
    background-color: var(--marriott-red);
    color: var(--white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 13px;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--marriott-red) 0%, var(--marriott-dark-red) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.benefits h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--marriott-red);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--marriott-red);
}

.benefit-card p {
    margin-bottom: 20px;
    color: #666;
}

.link {
    color: var(--marriott-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.link:hover {
    color: var(--marriott-dark-red);
}

/* Stats Preview */
.stats-preview {
    padding: 80px 0;
}

.stats-preview h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--marriott-red);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 3px solid var(--gray-light);
    transition: border-color 0.3s;
}

.stat-card:hover {
    border-color: var(--marriott-red);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--marriott-red);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Email Registration */
.email-registration {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.registration-card {
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.registration-card h2 {
    color: var(--marriott-red);
    margin-bottom: 15px;
}

.registration-card p {
    margin-bottom: 30px;
    color: #666;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Form Sections */
.form-section {
    background: var(--white);
    padding: 60px 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-container h1 {
    color: var(--marriott-red);
    margin-bottom: 10px;
}

.form-container .subtitle {
    color: #666;
    margin-bottom: 30px;
}

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

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

.form-group label.required::after {
    content: " *";
    color: var(--danger);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Multi-select */
.multi-select {
    border: 2px solid var(--gray-medium);
    border-radius: 5px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.multi-select label {
    display: block;
    padding: 8px;
    cursor: pointer;
    font-weight: 400;
    transition: background-color 0.2s;
}

.multi-select label:hover {
    background-color: var(--gray-light);
}

.multi-select input[type="checkbox"] {
    margin-right: 10px;
}

/* Footer */
.footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer-note {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 30px;
    }
    
    .benefits h2,
    .stats-preview h2 {
        font-size: 28px;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--gray-light);
    border-top: 3px solid var(--marriott-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 3px;
}

.badge-primary {
    background-color: var(--marriott-red);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--gray-medium);
    color: var(--gray-dark);
}

.badge-gold {
    background-color: var(--marriott-gold);
    color: var(--gray-dark);
}

.badge-success {
    background-color: var(--success);
    color: var(--white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--gray-dark);
}
