/**
 * Dr. Servicios - Support Modal Styles
 */

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

/* ✅ Force center alignment for support modals (like Bible modal) */
#supportModal,
#supportConfirmModal {
    align-items: center !important;
    justify-content: center !important;
}

#supportModal .modal-content,
#supportConfirmModal .modal-content {
    transform: none !important;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 400px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: #111827;
}

.modal-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: block;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
    color: #111827;
}

/* Form Styles (shared with auth-modal) */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px; /* ✅ iOS: Evita zoom automático */
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #4ADE80;
}

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

select.form-input {
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

/* Modal Button */
.modal-btn {
    width: 100%;
    padding: 14px;
    background: #4ADE80;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-btn:hover {
    background: #22c55e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.modal-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    color: #6b7280;
    font-size: 14px;
}

.modal-footer a {
    color: #4ADE80;
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 24px 20px;
    }

    .modal-title {
        font-size: 20px;
    }
}
