/* ==========================================================================
   Support Contact Page Styles
   Requires: landing.css (which imports _variables.css)
   ========================================================================== */

/* Page Layout */
.support-page-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.support-page-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.support-hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-800) 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.support-hero-inner {
    max-width: 600px;
    margin: 0 auto;
}

.support-hero h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 400;
    margin: 0.75rem 0 1rem;
    line-height: 1.2;
}

.support-hero-lead {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* Section Label */
.section-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Content Section */
.support-content {
    padding: 3rem 0 5rem;
    background: var(--gray-50);
    flex: 1;
}

.support-content .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card */
.support-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Success State */
.success-state {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
}

.success-state h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.success-state p {
    color: var(--text-secondary);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.success-state .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand);
    color: var(--white);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.success-state .btn-primary:hover {
    background: var(--brand-700);
    transform: translateY(-1px);
}

/* Error Alert */
.error-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.error-alert svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Form Styles */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: #ef4444;
}

.form-group label .optional {
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 142, 187, 0.15);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-group.readonly input {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

/* Submit Button */
.btn-submit {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--brand-600);
    color: var(--white);
}

.btn-submit:hover {
    background: var(--brand-700);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

.btn-submit svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Button container for centering */
.support-form .button-container {
    text-align: center;
    margin-top: 1.5rem;
}

/* Support Info */
.support-info {
    text-align: center;
    margin-top: 2rem;
    width: 100%;
    max-width: 640px;
}

.support-info p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.support-info a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.support-info a:hover {
    text-decoration: underline;
}

/* =============================================
   Form Validation Styles
   ============================================= */

/* Error state for inputs - border only, no background change */
.support-form input.is-invalid,
.support-form select.is-invalid,
.support-form textarea.is-invalid {
    border-color: var(--error-color, #dc3545);
}

.support-form input.is-invalid:focus,
.support-form select.is-invalid:focus,
.support-form textarea.is-invalid:focus {
    border-color: var(--error-color, #dc3545);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Error message text - minimal spacing */
.form-error {
    display: block;
    font-size: 0.8125rem;
    color: var(--error-color, #dc3545);
    margin-top: 0.25rem;
    min-height: 0;
}

/* =============================================
   Responsive Styles
   ============================================= */
@media (max-width: 768px) {
    .support-hero {
        padding: 6rem 0 3rem;
    }
    
    .support-content {
        padding: 2rem 0 4rem;
    }
    
    .support-content .container {
        padding: 0 1rem;
    }
    
    .support-card {
        padding: 1.75rem;
        border-radius: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .success-icon {
        width: 64px;
        height: 64px;
    }
    
    .success-icon svg {
        width: 36px;
        height: 36px;
    }
}
