/* Contact Hero Section */
.contact-hero {
    position: relative;
    background: var(--bg-primary);
    padding: 2rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
}

.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] .contact-hero::before {
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.08), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(147, 51, 234, 0.08), transparent 50%);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

[data-theme="light"] .contact-hero-title {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 50%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    max-height: 70px;
    margin: 0 auto;
}

/* Contact Page */
.contact-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 4rem 2rem;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-header {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    text-align: center;
}

.contact-header #particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: bold;
    max-width: 48rem;
    margin: 0 auto 1rem;
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .contact-title {
    background: linear-gradient(to right, #2563eb, #9333ea, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.contact-grid {
    display: grid;
    padding-left: 5rem;
    padding-right: 5rem;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card {
    background: var(--bg-card);
    max-width: 700px;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .form-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    resize: vertical;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    transform: translateY(0);
}

.contact-methods {
    display: grid;
    max-width: 700px;
    gap: 1rem;
}

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.method-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .method-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.method-card a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.method-icon {
    width: 3rem;
    height: 3rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.method-card:hover .method-icon {
    transform: scale(1.1);
}

.method-info h3 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.method-info .value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.method-info .description {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.location-card {
    margin-top: 2rem;
}

.location-placeholder {
    height: 12rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0 0 0.5rem 0.5rem;
}

[data-theme="light"] .location-placeholder {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(147, 51, 234, 0.15));
}

.faq-section {
    margin-top: 4rem;
}

.faq-title {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

[data-theme="light"] .cta-section {
    background: linear-gradient(to right, rgba(37, 99, 235, 0.08), rgba(147, 51, 234, 0.08));
}

.cta-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.btn-cta {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-cta-primary {
    background: var(--primary-color);
    color: white;
}

.btn-cta-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .btn-cta-primary:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.btn-cta-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-cta-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .btn-cta-outline:hover {
    background: rgba(37, 99, 235, 0.08);
}

.icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

[data-theme="light"] .toast {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.toast-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    animation: slideDown 0.3s ease-out;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-success {
    background-color: #10b981;
    color: white;
    border-left: 4px solid #059669;
}

.alert-error {
    background-color: #ef4444;
    color: white;
    border-left: 4px solid #dc2626;
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alert li {
    margin: 0.25rem 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Mobile-first adjustments (default styles for mobile) */
@media (max-width: 639px) {
    /* Hero Section */
    .contact-hero {
        padding: 1.5rem 1rem 3rem;
    }

    .contact-hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        max-height: none;
        padding: 0 0.5rem;
    }

    /* Contact Page */
    .contact-page {
        padding: 2rem 0.75rem;
    }

    /* Contact Grid */
    .contact-grid {
        padding-left: 0;
        padding-right: 0;
        gap: 2rem;
    }

    /* Contact Card */
    .contact-card {
        padding: 1.25rem;
        max-width: 100%;
    }

    /* Card Header */
    .card-title {
        font-size: 1.25rem;
    }

    .card-description {
        font-size: 0.875rem;
    }

    /* Form Elements */
    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-label {
        font-size: 0.875rem;
    }

    .form-input,
    .form-textarea {
        font-size: 1rem;
        padding: 0.625rem 0.875rem;
    }

    /* Button */
    .btn-primary {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    /* Contact Methods */
    .contact-methods {
        max-width: 100%;
        gap: 0.875rem;
    }

    .method-card {
        padding: 1.25rem;
    }

    .method-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .method-info h3 {
        font-size: 1rem;
    }

    .method-info .value {
        font-size: 0.8125rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .method-info .description {
        font-size: 0.6875rem;
    }

    /* FAQ Section */
    .faq-section {
        margin-top: 2rem;
    }

    .faq-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .faq-card {
        padding: 1.25rem;
    }

    .faq-question {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .faq-answer {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* CTA Section */
    .cta-section {
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 1.5rem 1rem;
    }

    .cta-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .cta-text {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .btn-cta {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        width: 100%;
    }

    /* Toast Notifications */
    .toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        padding: 0.875rem 1rem;
    }

    .toast-title {
        font-size: 0.9375rem;
    }

    .toast-description {
        font-size: 0.8125rem;
    }

    /* Alert Messages */
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    /* Contact Title & Subtitle */
    .contact-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .contact-subtitle {
        font-size: 1rem;
        padding-bottom: 2rem;
    }

    /* Section Title */
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    /* Location Card */
    .location-card {
        margin-top: 1rem;
    }

    .location-placeholder {
        height: 10rem;
    }
}

/* Small tablets and larger phones */
@media (min-width: 640px) and (max-width: 767px) {
    .contact-hero-title {
        font-size: 2.5rem;
    }

    .contact-hero-subtitle {
        font-size: 1.125rem;
    }

    .contact-grid {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .faq-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.375rem;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .contact-hero {
        padding: 2rem 1.5rem 5rem;
    }

    .contact-hero-title {
        font-size: 3rem;
    }

    .contact-hero-subtitle {
        font-size: 1.125rem;
    }

    .contact-grid {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .contact-page {
        padding: 3rem 1.5rem;
    }
}

/* Desktop adjustments */
@media (min-width: 1024px) {
    .contact-hero-title {
        font-size: 3.5rem;
    }

    .contact-hero-subtitle {
        font-size: 1.25rem;
    }
}
