/* Contact Page Styles */

.contact-section {
    min-height: 100vh;
    padding: var(--section-padding);
    padding-top: 8rem;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.contact-section .container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Form */
.contact-form-container {
    order: 1;
}

.contact-form-card {
    background: linear-gradient(
        145deg,
        rgba(26, 26, 26, 0.8) 0%,
        rgba(40, 40, 45, 0.8) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
    backdrop-filter: blur(20px) saturate(120%);
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(2, 113, 252, 0.3);
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.contact-form-card:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 113, 252, 0.5);
    box-shadow: 0 16px 48px rgba(2, 113, 252, 0.1);
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

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

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

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 1rem;
    background: rgba(13, 13, 13, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 113, 252, 0.1);
    background: rgba(26, 26, 26, 0.9);
}

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

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Captcha Styles */
.captcha-group {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(2, 113, 252, 0.05);
    border: 1px solid rgba(2, 113, 252, 0.2);
    border-radius: var(--border-radius);
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.captcha-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #74b9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background-color: rgba(2, 113, 252, 0.1);
    min-width: 120px;
    text-align: center;
}

.captcha-input {
    max-width: 120px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Submit Button */
.contact-submit-btn {
    align-self: flex-start;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

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

/* Contact Info */
.contact-info-container {
    order: 2;
}

.contact-info-card {
    background: linear-gradient(
        145deg,
        rgba(26, 26, 26, 0.8) 0%,
        rgba(40, 40, 45, 0.8) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
    backdrop-filter: blur(20px) saturate(120%);
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(2, 113, 252, 0.3);
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 113, 252, 0.5);
    box-shadow: 0 16px 48px rgba(2, 113, 252, 0.1);
}

.info-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        rgba(2, 113, 252, 0.2) 0%,
        rgba(2, 113, 252, 0.1) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(2, 113, 252, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.method-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.method-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.method-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.method-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.method-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Contact Page Social Links */
.contact-info .social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 113, 252, 0.3);
}

/* Messages */
.contact-message {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    font-weight: 500;
}

.contact-message--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.contact-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Spinning animation for loading */
.spinning {
    animation: spin 1s linear infinite;
}

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

/* Hero Tagline Styles for Contact Page */
.contact-section .hero-tagline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
    padding: 0 80px;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.contact-section .hero-tagline::before,
.contact-section .hero-tagline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: linePulse 3s ease-in-out infinite;
}

.contact-section .hero-tagline::before {
    right: 100%;
    margin-right: 20px;
}

.contact-section .hero-tagline::after {
    left: 100%;
    margin-left: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-container,
    .contact-info-container {
        order: unset;
    }

    .contact-section .hero-tagline {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }

    .contact-header {
        margin-bottom: 3rem;
    }

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

    .contact-subtitle {
        font-size: 1.1rem;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 2rem;
        margin: 0 1rem;
    }

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

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .method-icon {
        align-self: center;
    }

    .contact-info .social-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding-top: 6rem;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .contact-section .hero-tagline {
        font-size: clamp(2rem, 8vw, 3rem);
        padding: 0 40px;
    }

    .contact-section .hero-tagline::before,
    .contact-section .hero-tagline::after {
        display: none;
    }

    .form-title,
    .info-title {
        font-size: 1.5rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    .captcha-question {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .captcha-text {
        font-size: 1.1rem;
    }

    .captcha-input {
        max-width: 100%;
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
    }
}
