/* 1. Base Container - Full Width, No Shadow, Small Content */
.sqc-box {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 15px auto; 
    padding: 20px; 
    background-color: #FFFFFF !important;
    border-radius: 10px; 
    box-shadow: none;
    border: 1px solid #E5E7EB !important;
    color: #1F2937 !important;
    box-sizing: border-box;
    line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .sqc-box {
        margin: 5px;
        padding: 15px;
        border-radius: 6px;
    }
}

/* 2. Header/CTA Area - Smaller Text */
.sqc-box > div:first-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px; 
    padding-bottom: 10px;
    border-bottom: 1px solid #E5E7EB !important;
}
.sqc-box > div:first-child strong {
    font-size: 16px !important; 
    color: #1F2937 !important;
    font-weight: 700;
}
.sqc-box > div:first-child > div:first-child > div {
    font-size: 13px !important; 
    color: #6B7280 !important;
}

/* Login CTA Box */
.sqc-login-cta {
    margin-top: 15px !important;
    padding: 12px; 
    border: 1px solid #4F46E5 !important;
    border-radius: 6px;
    text-align: center;
    background-color: #F8F7FF !important;
}
.sqc-login-cta p {
    margin-bottom: 8px;
    font-size: 14px; 
    font-weight: 500;
}

/* 3. Button Styles */
.sqc-open-flow, .sqc-next, .sqc-prev, #sqc-finish-btn, .sqc-login-cta a button {
    cursor: pointer;
    padding: 8px 14px !important; 
    border-radius: 5px !important;
    font-weight: 600;
    font-size: 13px; 
    transition: all 0.25s ease-in-out;
    white-space: nowrap;
    line-height: 1.2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Primary Hover */
.sqc-open-flow:hover, .sqc-next:hover, #sqc-finish-btn:hover, .sqc-login-cta a button:hover {
    background-color: #3730A3 !important;
    border-color: #3730A3 !important;
    box-shadow: none; 
   
}

/* Primary Button */
.sqc-open-flow, .sqc-next, #sqc-finish-btn, .sqc-login-cta a button {
    background-color: #4F46E5 !important;
    color: #fff !important;
    border: 1px solid #4F46E5 !important;
}

/* Secondary Button (Prev) */
.sqc-prev {
    background-color: #fff !important;
    color: #4F46E5 !important;
    border: 1px solid #E5E7EB !important;
}
.sqc-prev:hover {
    background-color: #F9FAFB !important;
    border-color: #D1D5DB !important;
    transform: none;
    box-shadow: none;
}

/* Disabled State */
.sqc-next:disabled, .sqc-prev:disabled, #sqc-finish-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    box-shadow: none;
    background-color: #CBD5E1 !important;
    border-color: #CBD5E1 !important;
    transform: none;
    color: #4B5563 !important;
}
.sqc-next:disabled {
    color: #fff !important;
}

/* 4. Steps & Inputs */
.sqc-steps {
    margin-top: 15px !important;
}
.sqc-step {
    padding: 15px 0 !important;
    display: none; 
}
.sqc-step label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    font-size: 14px; 
    color: #1F2937 !important;
}
.sqc-step input, .sqc-step select {
    width: 100% !important;
    padding: 10px !important; 
    margin: 5px 0 12px 0 !important;
    border-radius: 4px !important;
    border: 1px solid #E5E7EB !important;
    background-color: #F9FAFB !important;
    font-size: 14px !important; 
    color: #1F2937 !important;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
}
.sqc-step input:focus, .sqc-step select:focus {
    outline: none;
    border-color: #4F46E5 !important;
    box-shadow: 0 0 0 2px rgba(79,70,229,0.1); 
    background-color: #FFFFFF !important;
}
.sqc-err {
    color: #EF4444 !important;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* Navigation Layout */
.sqc-step > div:last-child[style*="display:flex;justify-content:space-between"] {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 15px !important;
}

/* 5. Rating Stars */
.sqc-stars {
    display: flex;
    gap: 4px;
    margin: 10px 0 15px 0;
    justify-content: center;
}
.sqc-star {
    font-size: 18px; 
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: #F3F4F6 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5E7EB !important;
    color: #BCC0C8 !important;
    cursor: pointer;
    transition: all 0.25s;
    line-height: 1;
}
.sqc-star.filled {
    background-color: #4F46E5 !important;
    color: #fff !important;
    border-color: #4F46E5 !important;
    transform: scale(1.05);
}

/* Radio Buttons */
.sqc-step label input[type="radio"] {
    width: auto !important;
    margin-right: 8px !important;
    accent-color: #4F46E5 !important;
    background-color: #fff !important;
    border: 1px solid #E5E7EB !important;
}
.sqc-step > div:last-child > label {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

/* 6. Coupon Modal */
.sqc-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 99999;
    animation: fadeIn 0.25s ease-out;
}

.sqc-modal-inner {
    width: 90%;
    max-width: 380px; 
    background: #FFFFFF !important;
    border-radius: 10px; 
    padding: 30px; 
    text-align: center;
    box-shadow: none;
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid #D1D5DB !important; 
}

/* Success Icon/Heading */
.sqc-modal-inner h2 {
    color: #10B981 !important;
    margin-top: 0;
    font-size: 24px; 
    font-weight: 800;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 2px solid #10B981 !important;
    margin-bottom: 20px;
}
.sqc-modal-inner h2::before {
    content: ''; 
    font-size: 24px; 
}

/* Coupon Display */
.sqc-coupon {
    padding: 25px 20px !important; 
    background-color: #F0FFF4 !important;
    border-radius: 8px !important;
    border: 3px dashed #10B981 !important; 
    margin: 15px 0 !important;
}
.sqc-coupon-code {
    font-weight: 900 !important;
    font-size: 20px !important; 
    color: #3730A3 !important;
    text-transform: uppercase;
    display: block;
    letter-spacing: 0px !important; 
    margin: 0 !important;
}

/* Countdown */
.sqc-countdown {
    margin-top: 15px !important;
    color: #EF4444 !important;
    font-weight: 600;
    font-size: 14px; 
    padding: 8px;
    background-color: #FEF2F2 !important;
    border-radius: 4px;
    border: 1px solid #FCA5A5 !important;
}
.sqc-countdown .sqc-count {
    display: block;
    font-size: 20px; 
    margin-top: 4px;
    font-weight: 700;
}

/* Modal Actions */
.sqc-modal-actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 0px; 
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Copy button */
#sqc-copy-btn {
    background-color: #10B981 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 22px !important;
    font-size: 15px !important;
    border-radius: 6px !important;
    font-weight: 700;
    width: 100%;
}
#sqc-copy-btn:hover {
    background-color: #059669 !important;
    
}

/* Close button */
#sqc-close-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px 20px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    background-color: #F3F4F6 !important; 
    color: #6B7280 !important;
    border: 1px solid #E5E7EB !important;
    font-weight: 600;
    transition: background-color 0.25s;
}
#sqc-close-btn:hover {
    color: #1F2937 !important;
    background-color: #E5E7EB !important;
    transform: none; 
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
