/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/generation-sports-hero.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2.1rem 0;
    min-height: 50vh;
    color: #fff;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.contact-hero .hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 40vh;
}

.contact-hero .hero-content {
    text-align: center;
    max-width: 800px;
}

.contact-hero .hero-title {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.contact-hero .hero-subtitle {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 400;
}

.contact-hero .hero-description {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

/* Contact Methods Section */
.contact-methods {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-method {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-method:hover {
    box-shadow: 0 8px 30px rgba(244, 196, 48, 0.15);
    border-color: #F4C430;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F4C430 0%, #e6b129 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.contact-icon::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #333;
    z-index: 1;
}

.contact-icon i {
    font-size: 2rem;
    color: #F4C430;
    position: relative;
    z-index: 2;
}

.contact-method h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-method p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-link {
    color: #F4C430;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #e6b129;
}

.social-contact {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-contact a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #F4C430 0%, #e6b129 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.social-contact a::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: #333;
    z-index: 1;
}

.social-contact a i {
    font-size: 1.2rem;
    color: #F4C430;
    position: relative;
    z-index: 2;
}

.social-contact a:hover {
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.4);
}

/* Contact Form Section */
.contact-form-section {
    padding: 5rem 0;
    background-color: #fff;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
    cursor: text;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F4C430;
    box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #d0d0d0;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff6b6b;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

.submit-btn {
    background: linear-gradient(135deg, #F4C430 0%, #e6b129 100%);
    color: #333;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.submit-btn:hover {
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.4);
}

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

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #F4C430;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(244, 196, 48, 0.15);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.faq-item a {
    color: #F4C430;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-item a:hover {
    color: #e6b129;
    text-decoration: underline;
}

.faq-item a[href*="pickleball"] {
    color: #20B2AA;
}

.faq-item a[href*="pickleball"]:hover {
    color: #1a9b94;
    text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .form-container {
        padding: 4rem;
    }
}

@media (min-width: 1024px) {
    .contact-methods {
        padding: 6rem 0;
    }
    
    .contact-form-section {
        padding: 6rem 0;
    }
    
    .faq-section {
        padding: 6rem 0;
    }
    
    .faq-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Form Validation Styles */
.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff6b6b;
}

.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #51cf66;
}

/* Error message styling */
.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    opacity: 0;
    animation: fadeInError 0.3s ease forwards;
}

@keyframes fadeInError {
    to {
        opacity: 1;
    }
}

/* Form group error state */
.form-group.error {
    position: relative;
}

.form-group.error::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.2);
}

/* Loading State */
.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error Message Styling */
#form-messages {
    margin-top: 2rem;
}

#success-message,
#error-message {
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

#success-message {
    background: rgba(0, 230, 204, 0.1);
    border: 1px solid #00e6cc;
    color: #00e6cc;
}

#error-message {
    background: rgba(255, 42, 112, 0.1);
    border: 1px solid #ff2a70;
    color: #ff2a70;
}

#success-message h3,
#error-message h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

#success-message p,
#error-message p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}
