/* Contact Page Styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--darkgray);
    color: var(--text-primary);
    line-height: 1.6;
}

main {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--pageheader-height));
}

#content-container {
    flex-grow: 1;
    width: 100%;
    padding: 0;
}

/* Hero Section */
#contactHero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 6rem 2rem;
    margin-bottom: 6rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--gray) 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#contactHero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(15, 132, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(127, 90, 240, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

#contactHero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Styling */
section {
    max-width: 1400px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Form */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 132, 255, 0.1);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Captcha styling */
.captcha-group {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.cf-turnstile {
    margin: 0 auto;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary), var(--hoverColor));
    color: white;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 132, 255, 0.3);
}

/* Checkbox Styling */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-bg);
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-wrapper:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    color: var(--text-secondary);
    user-select: none;
}

.privacy-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: var(--hoverColor);
    text-decoration: underline;
}

/* Form Status Message */
.form-status-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    animation: fadeInUp 0.3s ease-out;
}

.form-status-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgb(34, 197, 94);
}

.form-status-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgb(239, 68, 68);
}

.form-status-message .status-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.form-status-message .status-icon svg {
    width: 20px;
    height: 20px;
}

.form-status-message .status-text {
    line-height: 1.5;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(15, 132, 255, 0.2), 0 0 0 1px rgba(15, 132, 255, 0.1);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--tertiary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
    margin: 0 auto 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.contact-info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: var(--hoverColor);
    text-decoration: underline;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(15, 132, 255, 0.1);
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #contactHero {
        padding: 2rem 1rem;
        margin-bottom: 3rem;
        gap: 1.5rem;
        min-height: auto;
    }
    
    #contactHero h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    section {
        padding: 0 1rem;
        margin-bottom: 4rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .faq-item {
        padding: 1.5rem;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    #contactHero {
        padding: 1.5rem 0.75rem;
        margin-bottom: 2rem;
        gap: 1.25rem;
    }
    
    #contactHero h1 {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    section {
        padding: 0 0.75rem;
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-info-card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .faq-item {
        padding: 1rem;
    }
}