/* ==========================================================================
   Support Request Modal — Modern 2026
   Clean, accessible, avoids light-blue palette.
   ========================================================================== */

/* Modal overlay */
.support-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    animation: supportFadeIn 0.25s ease;
}

.support-modal-overlay.active {
    display: flex;
}

@keyframes supportFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal dialog */
.support-modal {
    background: #ffffff;
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    animation: supportSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes supportSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal header */
.support-modal-header {
    padding: 28px 32px 20px;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: #ffffff;
    position: relative;
}

.support-modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.support-modal-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.92;
    line-height: 1.5;
}

.support-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.support-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal body */
.support-modal-body {
    padding: 28px 32px 32px;
    overflow-y: auto;
}

/* Form group */
.support-form-group {
    margin-bottom: 20px;
}

.support-form-label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.88rem;
}

.support-form-required {
    color: #dc2626;
    margin-left: 2px;
}

/* Contact type selector */
.support-contact-types {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.support-contact-type {
    flex: 1;
    min-width: 120px;
}

.support-contact-type input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.support-contact-type label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #4b5563;
    transition: all 0.2s ease;
    background: #ffffff;
}

.support-contact-type label:hover {
    border-color: #0d9488;
    color: #0f766e;
}

.support-contact-type input:checked + label {
    border-color: #0d9488;
    background: rgba(13, 148, 136, 0.08);
    color: #0f766e;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

.support-contact-type input:focus-visible + label {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

.support-contact-type svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Inputs & textarea */
.support-form-input,
.support-form-textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.support-form-input::placeholder,
.support-form-textarea::placeholder {
    color: #9ca3af;
}

.support-form-input:hover,
.support-form-textarea:hover {
    border-color: #d1d5db;
}

.support-form-input:focus,
.support-form-textarea:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
    outline: none;
}

.support-form-textarea {
    resize: vertical;
    min-height: 110px;
}

.support-form-hint {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.78rem;
}

/* Privacy checkbox */
.support-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.support-privacy input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: #0d9488;
    cursor: pointer;
}

.support-privacy label {
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.5;
    cursor: pointer;
}

.support-privacy a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.support-privacy a:hover {
    color: #0d9488;
}

/* Honeypot field */
.support-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* Alert message */
.support-form-message {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    line-height: 1.5;
}

.support-form-message.success {
    display: block;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.support-form-message.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Submit button */
.support-form-submit {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.support-form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
}

.support-form-submit:active:not(:disabled) {
    transform: translateY(0);
}

.support-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.support-form-submit svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.support-form-submit .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: supportSpin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 480px) {
    .support-modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .support-modal {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    .support-modal-header {
        padding: 22px 24px 18px;
    }

    .support-modal-header h2 {
        font-size: 1.3rem;
    }

    .support-modal-body {
        padding: 22px 24px 24px;
    }

    .support-contact-types {
        flex-direction: column;
    }

    .support-contact-type {
        min-width: auto;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .support-modal-overlay,
    .support-modal,
    .support-modal-close,
    .support-contact-type label,
    .support-form-input,
    .support-form-textarea,
    .support-form-submit {
        animation: none;
        transition: none;
    }
}
