/* Contact Page Styles */
.contact-main-wrap {
    padding: 5rem 0 7rem;
    background-color: var(--surface);
    font-family: 'Figtree', 'Inter', sans-serif;
}

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

.contact-header {
    margin-bottom: 3.5rem;
    max-width: 800px;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1c1d;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.contact-description {
    font-size: 1.15rem;
    line-height: 1.5;
    color: #4b5563;
    font-weight: 500;
}

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

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

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

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

@media (min-width: 600px) {
    .form-row-2col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    background-color: #f5f5f7;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    font-size: 1rem;
    color: #1a1c1d;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-control::placeholder {
    color: #86868b;
    font-weight: 500;
    opacity: 1;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #0070eb;
    box-shadow: 0 0 0 4px rgba(0, 112, 235, 0.1);
}

/* Select Dropdown Styling */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 3rem; /* Leave space for custom arrow */
}

/* Dropdown arrow matching the screenshot */
.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1c1d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.select-wrapper select:focus + ::after {
    transform: translateY(-50%) rotate(180deg);
}

.textarea-control {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

/* Submit Button */
.contact-submit-btn {
    align-self: flex-start;
    background-color: #2f61e6;
    color: #ffffff;
    padding: 0.95rem 2.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(47, 97, 230, 0.15);
}

.contact-submit-btn:hover {
    background-color: #1a4cd2;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(47, 97, 230, 0.25);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Spinner for submitting state */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: contact-spin 0.6s linear infinite;
}

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

/* Right side Info Styles */
.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    padding-top: 0.5rem;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-content {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #1a1c1d;
    font-weight: 500;
}

.contact-email-link {
    color: #1a1c1d;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.contact-email-link:hover {
    color: #2f61e6;
}

.address-content {
    line-height: 1.6;
}

/* Response message */
.form-response-msg {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    animation: contactFadeIn 0.3s ease;
}

.form-response-msg.success {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.form-response-msg.error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.hidden {
    display: none !important;
}

@keyframes contactFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive typography scaling */
@media (max-width: 768px) {
    .contact-main-wrap {
        padding: 3rem 0 5rem;
    }
    
    .contact-title {
        font-size: 2.75rem;
    }
    
    .contact-header {
        margin-bottom: 2.5rem;
    }
    
    .contact-grid {
        gap: 3rem;
    }
}
