/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */

/* Page Header */
.page-header {
    padding: 8rem 0 5rem;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-error {
    font-size: 0.85rem;
    color: #e74c3c;
    display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: #e74c3c;
}

.form-group.error .form-error {
    display: block;
}

.btn-submit {
    margin-top: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    animation: spin 1s linear infinite;
}

.spinner-circle {
    stroke-dasharray: 50;
    stroke-dashoffset: 25;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dashoffset: 50; }
    50% { stroke-dashoffset: 25; }
    100% { stroke-dashoffset: 50; }
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    margin-top: 1rem;
}

.form-message.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Contact Info */
.contact-info-wrapper {
    padding-top: 1rem;
}

.info-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.info-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.method-content {
    flex: 1;
}

.method-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.method-link {
    color: var(--accent-primary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.method-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.method-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Social Links */
.social-links {
    margin-bottom: 3rem;
}

.social-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Availability Badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.availability-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ==========================================
   RESPONSIVE DESIGN - CONTACT PAGE
   ========================================== */

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 4rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .info-title {
        font-size: 1.5rem;
    }

    .contact-methods {
        gap: 1.5rem;
    }

    .method-icon {
        width: 40px;
        height: 40px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .contact-grid {
        gap: 3rem;
    }

    .contact-form-wrapper {
        padding: 2.5rem;
    }
}

/* ==========================================
   ANIMATIONS - CONTACT PAGE
   ========================================== */

.contact-form-wrapper,
.contact-info-wrapper {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.contact-form-wrapper {
    animation-delay: 0.1s;
}

.contact-info-wrapper {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-method {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease forwards;
}

.contact-method:nth-child(1) { animation-delay: 0.3s; }
.contact-method:nth-child(2) { animation-delay: 0.4s; }
.contact-method:nth-child(3) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}