/* Contact Us Page - Sportzey Brand Styling */

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Sportzey Brand Colors & Design Language */
:root {
    --primary-blue: #1b365d;
    --secondary-blue: #2d5aa0;
    --primary-beige: #f5f5dc;
    --secondary-beige: #e8e4c9;
    --accent-beige: #f0ecd6;
    --accent-orange: #ffa500;
    --accent-red: #dc3545;
    --text-dark: #2c3e50;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-beige: linear-gradient(135deg, var(--primary-beige) 0%, var(--secondary-beige) 100%);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Base Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

/* Container and Layout Fixes */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Hero Section - Contact Page Style */
.hero {
    background: linear-gradient(135deg, var(--primary-beige) 0%, var(--accent-beige) 50%, var(--secondary-beige) 100%);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(27, 54, 93, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(27, 54, 93, 0.03) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(27,54,93,0.05)" stroke-width="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero-text {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 8px 32px rgba(27, 54, 93, 0.15);
    line-height: 1.1;
    position: relative;
}

.hero-text::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.4;
}

.hero-cta {
    font-size: 1.2rem;
    color: var(--secondary-blue);
    margin-bottom: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(27, 54, 93, 0.1);
}

/* Contact Options Section */
.contact-options {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--primary-beige) 0%, var(--accent-beige) 100%);
    position: relative;
}

.contact-options::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(27, 54, 93, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(27, 54, 93, 0.02) 0%, transparent 50%);
    opacity: 1;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.contact-option:nth-child(1) {
    animation: slideInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

.contact-option:nth-child(2) {
    animation: slideInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s both;
}

.contact-card {
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s both;
}

.contact-option {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 3.5rem;
    text-align: center;
    box-shadow: 
        0 20px 40px rgba(27, 54, 93, 0.08),
        0 8px 16px rgba(27, 54, 93, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(232, 228, 201, 0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-option:hover::before {
    transform: scaleX(1);
}

.contact-option:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 32px 64px rgba(27, 54, 93, 0.12),
        0 16px 32px rgba(27, 54, 93, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(27, 54, 93, 0.2);
}

.option-icon {
    margin-bottom: 2rem;
}

.option-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(27, 54, 93, 0.15));
    transition: all 0.3s ease;
}

.contact-option:hover .option-image {
    transform: scale(1.1);
    filter: drop-shadow(0 12px 32px rgba(27, 54, 93, 0.25));
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.option-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.option-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
    flex: 1;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(27, 54, 93, 0.2),
        0 8px 16px rgba(27, 54, 93, 0.15);
}

.btn-secondary {
    background: var(--gradient-beige);
    color: var(--primary-blue);
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(27, 54, 93, 0.15),
        0 8px 16px rgba(27, 54, 93, 0.1);
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    /* Ensure modal opens at the top with navbar spacing */
    align-items: flex-start;
    justify-content: center;
    /* Add top padding to account for fixed navbar */
    padding-top: 100px;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    margin: 1% auto;
    padding: 3.5rem;
    border-radius: 32px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 
        0 32px 64px rgba(27, 54, 93, 0.15),
        0 16px 32px rgba(27, 54, 93, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(232, 228, 201, 0.6);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-red);
}

.modal h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.form-intro {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.form-group:focus-within label {
    color: var(--secondary-blue);
    transform: translateY(-2px);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1.2rem;
    border: 2px solid rgba(232, 228, 201, 0.8);
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 
        0 0 0 4px rgba(27, 54, 93, 0.08),
        0 8px 24px rgba(27, 54, 93, 0.06);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

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

.submit-btn {
    margin-top: 1.5rem;
    padding: 1.4rem 3rem;
    font-size: 1.1rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(27, 54, 93, 0.25),
        0 8px 16px rgba(27, 54, 93, 0.15);
}

/* General Contact Section */
.general-contact {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--accent-beige) 0%, var(--primary-beige) 100%);
    position: relative;
}

.general-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(27, 54, 93, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(27, 54, 93, 0.02) 0%, transparent 50%);
    opacity: 1;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 3.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 2px dashed rgba(27, 54, 93, 0.3);
    box-shadow: 
        0 20px 40px rgba(27, 54, 93, 0.08),
        0 8px 16px rgba(27, 54, 93, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 32px 64px rgba(27, 54, 93, 0.12),
        0 16px 32px rgba(27, 54, 93, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(27, 54, 93, 0.5);
}

.contact-icon {
    margin-bottom: 2rem;
}

.contact-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(27, 54, 93, 0.15));
    transition: all 0.3s ease;
}

.contact-card:hover .contact-image {
    transform: scale(1.1);
    filter: drop-shadow(0 12px 32px rgba(27, 54, 93, 0.25));
}

.contact-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    text-align: center;
}

.contact-label {
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.contact-value {
    color: var(--text-dark);
    font-weight: 500;
}

.contact-note {
    font-style: italic;
    color: var(--text-dark);
    opacity: 0.8;
}

/* Success Modal */
.success-modal {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-content h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.success-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   MOBILE RESPONSIVENESS
   =================================== */
@media (max-width: 768px) {
    /* Container adjustments for mobile */
    .container {
        padding: 0 1rem;
    }
    
    /* Hero section mobile adjustments */
    .hero {
        padding: 4rem 0 3rem 0;
    }
    
    .hero-text {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
        letter-spacing: 2px;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }
    
    /* Contact options mobile adjustments */
    .contact-options {
        padding: 3rem 0;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-option {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .option-icon {
        margin-bottom: 1.5rem;
    }
    
    .option-image {
        width: 80px;
        height: 80px;
    }
    
    .option-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .option-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Modal mobile enhancements */
    .modal {
        padding: 1rem;
        padding-top: 80px;
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 0.5% auto;
        padding: 2rem 1.5rem;
        width: 95%;
        max-width: 100%;
        border-radius: 24px;
        max-height: 95vh;
    }
    
    .modal h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .form-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Form mobile enhancements */
    .contact-form {
        gap: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 12px;
        border-width: 2px;
    }
    
    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    /* General contact section mobile */
    .general-contact {
        padding: 3rem 0;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .contact-icon {
        margin-bottom: 1.5rem;
    }
    
    .contact-image {
        width: 80px;
        height: 80px;
    }
    
    .contact-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contact-label {
        font-size: 0.9rem;
    }
    
    .contact-link,
    .contact-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 3rem 0 2rem 0;
    }
    
    .hero-text {
        font-size: clamp(2rem, 7vw, 2.5rem);
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }
    
    .hero-cta {
        font-size: clamp(1rem, 3.5vw, 1.1rem);
    }
    
    /* Contact options extra small adjustments */
    .contact-options {
        padding: 2.5rem 0;
    }
    
    .contact-option {
        padding: 1.75rem 1.25rem;
    }
    
    .option-image {
        width: 70px;
        height: 70px;
    }
    
    .option-content h2 {
        font-size: 1.6rem;
    }
    
    .option-content p {
        font-size: 0.95rem;
    }
    
    /* Modal extra small adjustments */
    .modal {
        padding-top: 70px;
    }
    
    .modal-content {
        margin: 0.5rem auto;
        padding: 1.75rem 1.25rem;
        width: 98%;
        border-radius: 20px;
        max-height: 95vh;
    }
    
    .modal h2 {
        font-size: 1.8rem;
    }
    
    .form-intro {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    /* Form extra small adjustments */
    .contact-form {
        gap: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .form-group textarea {
        min-height: 90px;
    }
    
    .submit-btn {
        padding: 1.1rem 1.75rem;
        font-size: 0.95rem;
    }
    
    /* General contact extra small adjustments */
    .general-contact {
        padding: 2.5rem 0;
    }
    
    .contact-card {
        padding: 1.75rem 1.25rem;
    }
    
    .contact-image {
        width: 70px;
        height: 70px;
    }
    
    .contact-content h2 {
        font-size: 1.6rem;
    }
    
    .contact-content p {
        font-size: 0.95rem;
    }
    
    .contact-info {
        gap: 0.75rem;
    }
    
    .contact-label {
        font-size: 0.85rem;
    }
    
    .contact-link,
    .contact-value {
        font-size: 0.95rem;
    }
}


