/* ============================================
   CONTACT PAGE STYLES
   Two-column form layout, info cards, map
   ============================================ */

/* Back link */
.contact-back {
    display: inline-flex;
    margin-top: clamp(32px, 4vw, 48px);
    margin-bottom: 24px;
}

/* Main content grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    padding-bottom: var(--section-pad);
}

/* Form card */
.contact-form-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact-form-card h1 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.contact-form-card > p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Form layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}
.form-group label .required {
    color: var(--brand-red);
    margin-left: 2px;
}

/* Inputs */
.form-input,
.form-select,
.form-textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-input,
.form-select {
    height: 48px;
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%23707070' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}
.form-select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.form-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* Submit button */
.contact-submit {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.contact-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}
.contact-submit:active {
    background: var(--accent-pressed);
    transform: translateY(0);
}
.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.contact-submit svg {
    width: 18px;
    height: 18px;
}

/* Spinner inside button */
.contact-submit .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success message */
.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}
.form-success.visible {
    display: block;
}
.form-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-success-icon svg {
    width: 28px;
    height: 28px;
    color: var(--success);
}
.form-success h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.form-success p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Right column — sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Info cards */
.contact-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}
.contact-info-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}
.contact-info-card .card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-info-card .card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}
.contact-info-card .card-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.contact-info-card .card-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Map */
.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: none;
}

/* Privacy note */
.contact-privacy {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-top: 8px;
}

/* ============================================
   CONTACT — RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .contact-form-card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-sidebar {
        order: -1;
    }
    .contact-info-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .contact-form-card {
        padding: 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
}
