/* Contact Page Specific Styles - Only loads on contact.html */
/* Cycling Over Sixty - Contact Page CSS */

/* ===== CONTACT HERO SECTION ===== */
.contact-hero {
   background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 80px 20px;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    text-align: center;
}

.contact-hero .hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.contact-hero .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== CONTACT HIGHLIGHTS ===== */
.contact-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 equal columns */
    gap: 20px; /* Reduced gap for better fit */
    max-width: 700px; /* Reduced max-width to keep items smaller */
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 10px; /* Reduced padding for smaller items */
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Reduced gap */
    min-width: 0; /* Allow items to shrink */
}

.highlight-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.highlight-icon {
    font-size: 1.8rem; /* Slightly smaller icon */
    margin-bottom: 5px;
}

.highlight-text {
    font-size: 0.85rem; /* Smaller text */
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

/* ===== CONTACT METHODS SECTION ===== */
.contact-methods {
    margin-bottom: 50px;
}

.contact-methods h3 {
    font-size: 2.2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--background-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-card.primary {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #f8fff8, #ffffff);
}

.contact-card.secondary {
    border-color: #3498db;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.contact-card.primary:hover {
    border-color: var(--accent-green);
}

.contact-card.secondary:hover {
    border-color: #2980b9;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform var(--transition-smooth);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card h4 {
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ===== ZWIFT AND STRAVA CLUB STYLING ===== */
/* Zwift banner styling */
.zwift-banner {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}

/* Strava image styling - UPDATED to maximize area while showing full image */
.strava-image {
    width: auto;
    height: 100%;
    max-width: 100%; /* Ensures it doesn't exceed container width */
    object-fit: contain; /* Shows full image without cropping */
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: block; /* Removes any inline spacing */
    margin-left: auto;
    margin-right: auto;
}

/* Club cards styling - now showing icons */
.contact-card.club {
    text-align: center;
}

/* ===== CONTACT ACTIONS ===== */
.contact-action {
    margin-bottom: 25px;
}

.contact-button {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all var(--transition-smooth);
    word-break: break-all;
}

.contact-button:hover,
.contact-button:focus {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 226, 31, 0.3);
}

.text-message-info {
    background: var(--background-hero);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px dashed #3498db;
}

.instruction-text {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: bold;
}

.podcast-platforms-mini {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.platform-mini {
    display: inline-block;
    font-size: 1.5rem;
    padding: 8px;
    border-radius: 50%;
    background: var(--background-white);
    text-decoration: none;
    transition: transform var(--transition-smooth);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.platform-mini:hover {
    transform: scale(1.2);
}

/* ===== CONTACT DETAILS ===== */
.contact-details {
    text-align: left;
    background: var(--background-hero);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-dark);
}

.contact-uses {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-uses li {
    padding: 5px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.contact-uses li:before {
    content: "✓";
    color: var(--primary-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===== FAQ SECTION ===== */
.contact-faq {
    margin-bottom: 50px;
}

.contact-faq h3 {
    font-size: 2.2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.faq-item {
    background: var(--background-white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-smooth);
    border-left: 4px solid var(--primary-green);
    cursor: pointer;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.faq-item h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.faq-item a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* ===== CONTACT FORM (if added) ===== */
.contact-form-section {
    background: var(--background-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 50px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-help {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.checkbox-text {
    color: var(--text-medium);
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.submit-button {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-button:hover,
.submit-button:focus {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 226, 31, 0.3);
}

.reset-button {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-smooth);
}

.reset-button:hover {
    background: #7f8c8d;
}

/* ===== LOADING STATES ===== */
.submit-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-button.loading .button-text {
    display: none;
}

.submit-button.loading:after {
    content: "Sending...";
}

/* ===== FORM SUCCESS MESSAGE ===== */
.form-success-message {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.success-content h4 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.success-content p {
    margin-bottom: 10px;
    opacity: 0.95;
}

.success-content a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

/* ===== NOTIFICATION STYLES ===== */
.contact-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification-success {
    background-color: #27ae60;
}

.notification-error {
    background-color: #e74c3c;
}

.notification-info {
    background-color: #3498db;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 20px;
    }
    
    .contact-hero .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .contact-hero .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .contact-highlights {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablets */
        gap: 15px;
        max-width: 400px; /* Smaller max-width for mobile */
    }
    
    .highlight-item {
        padding: 12px 8px; /* Even smaller padding */
        flex-direction: column; /* Keep vertical layout */
        text-align: center;
    }
    
    .highlight-icon {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .highlight-text {
        font-size: 0.8rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-card {
        padding: 30px 25px;
    }
    
    .contact-icon {
        font-size: 2.5rem;
    }
    
    .contact-card h4 {
        font-size: 1.4rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .submit-button,
    .reset-button {
        min-width: 200px;
        justify-content: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    /* Tablet-specific adjustments for images */
    .strava-image {
        /* No height restrictions - let image scale naturally to container width */
    }
    
    .zwift-banner {
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 40px 15px;
    }
    
    .contact-hero .hero-content h2 {
        font-size: 2rem;
    }
    
    .contact-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-highlights {
        grid-template-columns: repeat(2, 1fr); /* Keep 2x2 grid on mobile */
        gap: 12px;
        max-width: 300px; /* Even smaller for mobile */
    }
    
    .highlight-item {
        padding: 10px 6px; /* Minimal padding */
    }
    
    .highlight-icon {
        font-size: 1.3rem;
    }
    
    .highlight-text {
        font-size: 0.75rem;
        line-height: 1.1;
    }
    
    .contact-card {
        padding: 25px 20px;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    .contact-card h4 {
        font-size: 1.2rem;
    }
    
    .contact-card p {
        font-size: 1rem;
    }
    
    .contact-button {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .text-message-info {
        padding: 15px;
    }
    
    .instruction-text {
        font-size: 0.9rem;
    }
    
    .podcast-platforms-mini {
        gap: 10px;
    }
    
    .platform-mini {
        font-size: 1.2rem;
        padding: 6px;
    }
    
    .contact-form-section {
        padding: 25px 20px;
    }
    
    .form-header h3 {
        font-size: 1.8rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .submit-button,
    .reset-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .faq-item {
        padding: 18px;
    }
    
    .faq-item h4 {
        font-size: 1.1rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
    }
    
    /* Mobile-specific image adjustments */
    .strava-image {
        /* No height restrictions - let image scale naturally to container width */
    }
    
    .zwift-banner {
        max-height: 150px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .contact-hero,
    .back-to-top {
        display: none;
    }
    
    .contact-card {
        break-inside: avoid;
        margin-bottom: 20px;
        border: 1px solid #ddd;
    }
    
    .contact-form-section {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-item {
        break-inside: avoid;
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }
    
    .contact-button {
        color: black !important;
        background: white !important;
        border: 1px solid black;
    }
}

/* ===== ANIMATION DELAYS ===== */
.contact-card:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.1s both; }
.contact-card:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.2s both; }
.contact-card:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.3s both; }
.contact-card:nth-child(4) { animation: fadeInUp 0.8s ease-out 0.4s both; }

.faq-item:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.1s both; }
.faq-item:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.2s both; }
.faq-item:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.3s both; }
.faq-item:nth-child(4) { animation: fadeInUp 0.8s ease-out 0.4s both; }
.faq-item:nth-child(5) { animation: fadeInUp 0.8s ease-out 0.5s both; }
.faq-item:nth-child(6) { animation: fadeInUp 0.8s ease-out 0.6s both; }
.faq-item:nth-child(7) { animation: fadeInUp 0.8s ease-out 0.7s both; }
.faq-item:nth-child(8) { animation: fadeInUp 0.8s ease-out 0.8s both; }