/**
 * MediHealth Deactivation Feedback Modal Styles
 *
 * @package MediHealth WordPress theme
 */

/* Modal Overlay */
.medihealth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Prevent body scroll when modal is open */
body.medihealth-modal-open {
    overflow: hidden;
}

/* Modal Container */
.medihealth-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 520px;
    width: 100%;
    position: relative;
    animation: medihealthModalSlide 0.3s ease-out;
}

@keyframes medihealthModalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.medihealth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.2s;
}

.medihealth-modal-close:hover {
    color: #d63638;
}

/* Modal Header */
.medihealth-modal-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #eee;
}

.medihealth-modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #1d2327;
    font-weight: 600;
}

.medihealth-modal-header p {
    margin: 0;
    color: #646970;
    font-size: 14px;
}

/* Modal Body */
.medihealth-modal-body {
    padding: 20px 25px;
}

/* Feedback Options */
.medihealth-feedback-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.medihealth-feedback-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f6f7f7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    margin: 0;
}

.medihealth-feedback-option:hover {
    background: #f0f0f1;
    border-color: #dcdcde;
}

.medihealth-feedback-option input[type="radio"] {
    margin: 0 12px 0 0;
    flex-shrink: 0;
}

.medihealth-feedback-option input[type="radio"]:checked + span {
    color: #00b3cc;
    font-weight: 500;
}

.medihealth-feedback-option:has(input:checked) {
    background: #f0fcfd;
    border-color: #00b3cc;
}

.medihealth-feedback-option span {
    font-size: 14px;
    color: #1d2327;
}

/* Feedback Details Textarea */
.medihealth-feedback-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.medihealth-feedback-details label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #50575e;
    font-weight: 500;
}

.medihealth-feedback-details textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.medihealth-feedback-details textarea:focus {
    border-color: #00b3cc;
    box-shadow: 0 0 0 1px #00b3cc;
    outline: none;
}

/* Modal Footer */
.medihealth-modal-footer {
    padding: 15px 25px 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.medihealth-feedback-note {
    margin: 0;
    padding: 10px 12px;
    background: #f0f6fc;
    border-left: 3px solid #72aee6;
    font-size: 12px;
    color: #50575e;
    border-radius: 0 4px 4px 0;
}

.medihealth-feedback-note a {
    color: #00b3cc;
    text-decoration: none;
}

.medihealth-feedback-note a:hover {
    text-decoration: underline;
}

.medihealth-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.medihealth-modal-footer .button {
    padding: 8px 20px;
    font-size: 14px;
    height: auto;
    line-height: 1.5;
}

.medihealth-skip-btn {
    color: #646970;
}

.medihealth-skip-btn:hover {
    color: #1d2327;
}

.medihealth-submit-btn {
    background: #00b3cc !important;
    border-color: #00b3cc !important;
}

.medihealth-submit-btn:hover {
    background: #009db3 !important;
    border-color: #009db3 !important;
}

.medihealth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 520px) {
    .medihealth-modal {
        max-width: 100%;
        margin: 10px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .medihealth-modal-header,
    .medihealth-modal-body,
    .medihealth-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .medihealth-modal-footer {
        flex-direction: column-reverse;
    }

    .medihealth-modal-footer .button {
        width: 100%;
        text-align: center;
    }
}
