/* Membership Application Styles */

/* Tournament Hero Section */
.tournament-hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.85)), 
                url('/static/images/tennis-championship.jpg') center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, rgba(26, 26, 26, 0.8) 70%);
    z-index: 1;
}

.tournament-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #D4AF37;
    font-size: 1.1rem;
}

.hero-badge span {
    color: #D4AF37;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tournament-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: #F5F5F5;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.tournament-subtitle {
    font-size: 1.6rem;
    color: #D4AF37;
    margin-bottom: 2.5rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 1px;
}

.tournament-divider {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 0 auto 2.5rem;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.tournament-description {
    font-size: 1.3rem;
    color: #F5F5F5;
    line-height: 1.6;
    margin-bottom: 4rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tournament-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4AF37;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #F5F5F5;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Tournament Hero Responsive Design */
@media (max-width: 768px) {
    .tournament-hero {
        min-height: 75vh;
        padding: 4rem 0;
    }
    
    .tournament-title {
        font-size: 3rem;
        letter-spacing: 1px;
    }
    
    .tournament-subtitle {
        font-size: 1.3rem;
    }
    
    .tournament-description {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    .tournament-stats {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-badge {
        padding: 0.6rem 1.2rem;
        gap: 0.5rem;
    }
    
    .hero-badge span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tournament-hero {
        min-height: 70vh;
        padding: 3rem 0;
    }
    
    .tournament-title {
        font-size: 2.5rem;
    }
    
    .tournament-subtitle {
        font-size: 1.1rem;
    }
    
    .tournament-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .tournament-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Application Hero Section (Legacy) */
.application-hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.8)), 
                url('/static/images/tennis-court-luxury.jpg') center/cover;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 80px;
    padding: 3rem 0;
}

.application-hero-content {
    max-width: 900px;
    padding: 0 2rem;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.application-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #F5F5F5;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.application-subtitle {
    font-size: 1.5rem;
    color: #D4AF37;
    margin-bottom: 2.5rem;
    font-style: italic;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.application-divider {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

.application-description {
    font-size: 1.2rem;
    color: #F5F5F5;
    line-height: 1.7;
    opacity: 0.95;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Form Section */
.application-form-section {
    background: linear-gradient(135deg, #F5F5F5 0%, #FAFAFA 100%);
    padding: 6rem 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.application-form {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.application-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #B8860B, #D4AF37);
}

.form-section {
    padding: 4rem 4rem 3rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1A1A1A;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-title i {
    color: #D4AF37;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 800px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 800px;
}

.form-group label {
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: block;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FAFAFA;
    color: #1A1A1A;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
    background: white;
    transform: translateY(-1px);
}

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

.form-group select {
    cursor: pointer;
}

.form-group input[type="date"] {
    cursor: pointer;
}

/* Checkbox Styling */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 800px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(212, 175, 55, 0.02);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.checkbox-label:hover {
    background-color: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #D4AF37;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #D4AF37;
    border-color: #D4AF37;
    transform: scale(1.1);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.checkbox-label.agreement {
    grid-column: 1 / -1;
    background-color: rgba(212, 175, 55, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.25);
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

/* Error Messages */
.error-message {
    color: #E74C3C;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #E74C3C;
}

.form-group.error .error-message {
    display: block;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.submit-btn {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: white;
    border: none;
    padding: 1.25rem 4rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #E5C048, #C9941C);
}

.submission-note {
    margin-top: 1.5rem;
    color: #666;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(212, 175, 55, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
}

.submission-note i {
    color: #D4AF37;
    font-size: 1.1rem;
}

/* Footer */
.application-footer {
    background: #1A1A1A;
    color: #F5F5F5;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    color: #D4AF37;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #F5F5F5;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #D4AF37;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 245, 245, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .application-form {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .form-section {
        padding: 3rem 2.5rem 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .form-row,
    .form-group,
    .checkbox-group,
    .form-actions {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .application-title {
        font-size: 3rem;
    }
    
    .application-subtitle {
        font-size: 1.3rem;
    }
    
    .application-description {
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-section {
        padding: 2.5rem 2rem 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .submit-btn {
        padding: 1.125rem 3rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .application-hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .application-hero-content {
        padding: 0 1rem;
    }
    
    .application-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .application-subtitle {
        font-size: 1.1rem;
    }
    
    .application-description {
        font-size: 1rem;
    }
    
    .form-section {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .submit-btn {
        padding: 1rem 2.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .form-actions {
        margin-top: 1.5rem;
    }
}