/* Contact Section Styles */
.contact {
    position: relative;
    padding: 4rem 0;
}

.contact .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Contact Copy */
.contact-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: fit-content;
}

.contact-copy h2 {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--foreground);
    letter-spacing: -0.02em;
    margin: 0;
}

.contact-copy p {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    margin: 0;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-details a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--foreground);
    text-decoration: none;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.contact-details a:hover {
    background: var(--muted);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
}

.contact-details a i {
    color: var(--primary);
    font-size: 1rem;
    width: 1.125rem;
    text-align: center;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
    padding: 0.75rem 1rem;
}

.contact-details p i {
    color: var(--primary);
    font-size: 1.125rem;
    width: 1.25rem;
    text-align: center;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--foreground);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px oklch(from var(--primary) l c h / 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted-foreground);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-sans);
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-form button[type="submit"] {
    margin-top: 0.5rem;
    width: 100%;
}

/* Form Message */
.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    margin-top: 1rem;
}

.form-message.success {
    background: oklch(0.95 0.05 150);
    color: oklch(0.35 0.15 150);
    border: 1px solid oklch(0.85 0.08 150);
}

.form-message.error {
    background: oklch(0.95 0.05 0);
    color: oklch(0.35 0.15 0);
    border: 1px solid oklch(0.85 0.08 0);
}

.dark .form-message.success {
    background: oklch(0.25 0.08 150);
    color: oklch(0.75 0.1 150);
    border-color: oklch(0.35 0.12 150);
}

.dark .form-message.error {
    background: oklch(0.25 0.08 0);
    color: oklch(0.75 0.1 0);
    border-color: oklch(0.35 0.12 0);
}

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

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

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

    .contact .container {
        padding: 0 1rem;
    }

    .contact-grid {
        gap: 2rem;
    }

    .contact-copy {
        gap: 1.5rem;
    }

    .contact-copy h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .contact-copy p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .contact-details a,
    .contact-details p {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 3rem 0;
    }

    .contact-copy {
        gap: 1rem;
    }

    .contact-copy .eyebrow {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .contact-copy h2 {
        font-size: 1.75rem;
    }

    .contact-copy p {
        font-size: 0.9375rem;
    }

    .contact-form {
        padding: 1.25rem;
        gap: 1rem;
    }

    .contact-form label {
        font-size: 0.8125rem;
    }

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

    .contact-details {
        gap: 0.75rem;
    }

    .contact-details a,
    .contact-details p {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}