/* Team Registration Page Styles */

/* Hero Section - Team Specific */
.walkathon-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), 
                url('img/newwalkathonimg.jfif');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    position: relative;
}

.walkathon-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.8), rgba(255, 107, 53, 0.6));
}

.walkathon-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-badge {
    margin-bottom: 20px;
}

.walkathon-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.1;
    font-weight: 300;
}

.walkathon-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.detail-icon {
    font-size: 1.2rem;
}

/* Registration Section */
.registration-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.registration-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.registration-form-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Registration Type Indicator */
.registration-type-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2c5aa0, #1e3f73);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.team-badge {
    background: black;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

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

.form-section h3 {
    font-size: 1.4rem;
    color: #2c5aa0;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

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

/* Team Specific Notes */
.team-tshirt-note {
    background: #e8f4fd;
    border-left: 4px solid #2c5aa0;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.team-tshirt-note p {
    margin: 0;
    color: #2c5aa0;
    font-size: 14px;
    line-height: 1.5;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #2c5aa0;
    border-color: #2c5aa0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Terms Dropdown */
.terms-dropdown {
    margin-bottom: 20px;
}

.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.terms-header:hover {
    background: #e9ecef;
    border-color: #2c5aa0;
}

.dropdown-arrow {
    font-size: 14px;
    color: #2c5aa0;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.terms-header:hover .dropdown-arrow {
    transform: scale(1.1);
}

/* Terms Content */
.terms-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

.terms-content p {
    margin-bottom: 15px;
    color: #555;
}

.terms-content ul {
    margin-left: 20px;
    color: #555;
}

.terms-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-bottom: 20px;
}

.register-btn {
    background: black;
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
    min-width: 280px;
    justify-content: center;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.register-btn:active {
    transform: translateY(0);
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.security-icon {
    color: #28a745;
    font-size: 16px;
}

/* Event Info Sidebar */
.event-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-card,
.whats-included-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.event-card h3,
.whats-included-card h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    font-size: 1.5rem;
    margin-top: 2px;
}

.info-item strong {
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

.info-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    margin-bottom: 20px;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.modal-header h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin: 0;
}

.modal-body p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-footer {
    margin-top: 30px;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1e3f73;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .registration-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .event-info-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .walkathon-hero {
        height: 60vh;
        margin-top: 80px;
    }
    
    .walkathon-hero h1 {
        font-size: 2.5rem;
    }
    
    .walkathon-hero p {
        font-size: 1.1rem;
    }
    
    .event-details {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .registration-form-container {
        padding: 25px;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .register-btn {
        min-width: 100%;
        padding: 16px 30px;
    }
    
    .event-card,
    .whats-included-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .walkathon-hero h1 {
        font-size: 2rem;
    }
    
    .registration-form-container {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        padding: 25px;
        margin: 20px;
    }
}

/* Form Validation Styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Loading State */
.register-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.register-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Success State */
.form-group input.success,
.form-group select.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.register-btn:focus,
.btn-primary:focus {
    outline: 3px solid rgba(44, 90, 160, 0.5);
    outline-offset: 2px;
}

.checkbox-label:focus-within {
    outline: 2px solid rgba(44, 90, 160, 0.5);
    outline-offset: 2px;
    border-radius: 8px;
}
