/* Support Page Specific Styles */

.support-main {
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.support-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.support-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.support-subtitle {
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0;
}

.support-content {
    margin-bottom: 2rem;
}

/* Form Styles */
.support-form {
    background: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--input-background);
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--secondary-color);
    opacity: 0.7;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
    background: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: var(--secondary-color);
    filter: grayscale(0.8);
}

.submit-btn.form-incomplete {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--secondary-color);
    filter: grayscale(0.8);
    transform: none;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success Message */
.success-message {
    background: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    font-weight: bold;
}

.success-message h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.success-message p {
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.new-message-btn {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-message-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* Logo link styling */
.logo-container a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-container a:hover {
    opacity: 0.8;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .support-main {
        padding: 1.5rem 1rem;
    }
    
    .support-header h1 {
        font-size: 1.75rem;
    }
    
    .support-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .success-message {
        padding: 2rem 1.5rem;
    }
}

/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .support-main {
        padding: 1rem;
    }
    
    .support-header {
        margin-bottom: 1.5rem;
    }
    
    .support-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .support-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
}

/* Dark theme adjustments */
:root[data-theme="dark"] .support-form,
:root[data-theme="dark"] .success-message {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Focus visible for accessibility */
.submit-btn:focus-visible,
.new-message-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Smooth transitions for theme switching */
.support-form,
.success-message,
.form-group input,
.form-group textarea {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
