/**
 * Deactivation Feedback Modal Styles
 * Subscribe Button Bar
 */

/* Modal Overlay */
.sbb-deactivate-feedback-dialog-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sbb-deactivate-feedback-dialog-wrapper.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.sbb-feedback-modal {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sbb-deactivate-feedback-dialog-wrapper.show .sbb-feedback-modal {
    transform: translateY(0);
}

/* Modal Header */
#sbb-deactivate-feedback-dialog-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f1;
}

#sbb-deactivate-feedback-dialog-header-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    margin-left: 12px;
}

.sbb-feedback-icon {
    color: #d63638;
    font-size: 24px;
    line-height: 1;
}

/* Form Caption */
#sbb-deactivate-feedback-dialog-form-caption {
    color: #50575e;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Form Body */
#sbb-deactivate-feedback-dialog-form-body {
    margin-bottom: 25px;
}

/* Input Wrapper */
.sbb-deactivate-feedback-dialog-input-wrapper {
    margin-bottom: 5px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.sbb-deactivate-feedback-dialog-input-wrapper:hover {
    background-color: #f6f7f7;
}

/* Radio Inputs */
.sbb-deactivate-feedback-dialog-input {
    margin-right: 12px;
    margin-top: 2px;
    vertical-align: text-top;
    cursor: pointer;
}

/* Labels */
.sbb-deactivate-feedback-dialog-label {
    display: block;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
    color: #3c434a;
    font-weight: 500;
    user-select: none;
}

/* Textarea Fields */
.sbb-feedback-text {
    width: calc(100% - 46px);
    margin: 0 10px 15px 36px;
    padding: 10px 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    background-color: #fff;
    color: #2c3338;
    display: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.sbb-feedback-text:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Contact Field Styles */
.sbb-contact-wrapper {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
}

.sbb-contact-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #3c434a;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
}

.sbb-contact-checkbox {
    margin-right: 10px;
    cursor: pointer;
}

.sbb-email-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.sbb-email-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Error Message */
.sbb-api-error {
    color: #d63638;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

/* Modal Footer */
.sbb-modal-footer {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    border-top: 1px solid #f0f0f1;
}

/* Buttons */
.sbb-modal-footer .button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    border: 1px solid;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sbb-modal-footer .button-primary {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}

.sbb-modal-footer .button-primary:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

.sbb-modal-footer .button-primary:disabled {
    background: #f0f0f1;
    border-color: #dcdcde;
    color: #a7aaad;
    cursor: not-allowed;
}

.sbb-skip-and-deactivate {
    background: transparent;
    border-color: transparent !important;
    color: #2271b1;
    text-decoration: underline;
}

.sbb-skip-and-deactivate:hover {
    color: #135e96;
    background: transparent;
}

/* Close Button */
.sbb-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #787c82;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
}

.sbb-close-btn:hover {
    color: #1d2327;
}

/* Loading Animation */
.sbb-modal-footer .button-primary:disabled::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid #a7aaad;
    border-radius: 50%;
    animation: sbb-spin 1s linear infinite;
}

@keyframes sbb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 600px) {
    .sbb-feedback-modal {
        width: 95%;
        margin: 10px;
        padding: 20px;
    }

    .sbb-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .sbb-modal-footer .button,
    .sbb-skip-and-deactivate {
        width: 100%;
        text-align: center;
    }
}
