/* SMS Opt-in System Styles - Paladium One */
/* Professional and aesthetic design matching the site's visual identity */

:root {
    --sms-primary: #8b53e4;
    --sms-secondary: #6c3bb8;
    --sms-success: #28a745;
    --sms-warning: #ffc107;
    --sms-danger: #dc3545;
    --sms-light: #f8f9fa;
    --sms-dark: #343a40;
    --sms-border: #e9ecef;
    --sms-text: #495057;
    --sms-text-light: #6c757d;
}

/* SMS Consent Container - Compact Design */
.sms-consent-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--sms-border);
    border-radius: 15px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.sms-consent-container:hover {
    border-color: var(--sms-primary);
    box-shadow: 0 8px 25px rgba(139, 83, 228, 0.15);
}

.sms-consent-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sms-primary) 0%, var(--sms-secondary) 100%);
    border-radius: 15px 15px 0 0;
}

/* Always Visible Content */
.sms-consent-content {
    padding: 25px;
    background: rgba(139, 83, 228, 0.02);
}

/* Hide SMS elements in modals - AGGRESSIVE APPROACH */
.modal, .contact-success-modal, [class*="modal"],
.elementor-popup-modal, .elementor-lightbox,
div[style*="position: fixed"], div[style*="z-index"] {
    .sms-consent-checkbox,
    .sms-consent-container,
    input[type="checkbox"][id*="smsConsent"],
    input[type="checkbox"][name*="sms_consent"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
}

/* Additional aggressive hiding for any checkbox in modals */
.modal input[type="checkbox"],
.contact-success-modal input[type="checkbox"],
.elementor-popup-modal input[type="checkbox"],
div[style*="position: fixed"] input[type="checkbox"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* SMS Consent Header */
.sms-consent-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.sms-consent-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--sms-primary) 0%, var(--sms-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(139, 83, 228, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sms-consent-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--sms-dark);
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-align: center;
    cursor: default;
    transition: color 0.3s ease;
}

/* Title hover removed since it's not clickable */

/* SMS Consent Checkbox */
.sms-consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(139, 83, 228, 0.05);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.sms-consent-checkbox:hover {
    background: rgba(139, 83, 228, 0.1);
    border-color: var(--sms-primary);
}

.sms-consent-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    background: white;
    border: 2px solid var(--sms-border);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sms-consent-checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--sms-primary) 0%, var(--sms-secondary) 100%);
    border-color: var(--sms-primary);
    box-shadow: 0 4px 15px rgba(139, 83, 228, 0.3);
}

.sms-consent-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.sms-consent-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--sms-dark);
    line-height: 1.5;
    margin: 0;
}

/* SMS Consent Disclosure */
.sms-consent-disclosure {
    background: var(--sms-light);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--sms-primary);
    margin-top: 15px;
}

.sms-consent-disclosure p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--sms-text);
}

.sms-consent-disclosure p:last-child {
    margin-bottom: 0;
}

.sms-consent-disclosure a {
    color: var(--sms-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.sms-consent-disclosure a:hover {
    border-bottom-color: var(--sms-primary);
    text-decoration: none;
}

/* SMS Compliance Info */
.sms-compliance-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-size: 0.85rem;
    color: var(--sms-text-light);
}

.sms-compliance-info strong {
    color: var(--sms-dark);
    font-weight: 600;
}

/* Error States */
.sms-consent-error {
    border-color: var(--sms-danger) !important;
    background: rgba(220, 53, 69, 0.05) !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.sms-error-message {
    color: var(--sms-danger);
    font-size: 0.9rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.sms-error-message::before {
    content: '⚠️';
    font-size: 16px;
}

/* Success States */
.sms-consent-success {
    border-color: var(--sms-success) !important;
    background: rgba(40, 167, 69, 0.05) !important;
}

.sms-success-message {
    color: var(--sms-success);
    font-size: 0.9rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.sms-success-message::before {
    content: '✅';
    font-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sms-consent-container {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .sms-consent-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .sms-consent-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .sms-consent-title {
        font-size: 1.1rem;
    }
    
    .sms-consent-checkbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    
    .sms-consent-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    .sms-consent-disclosure {
        padding: 15px;
    }
    
    .sms-consent-disclosure p {
        font-size: 0.85rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .sms-consent-container {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .sms-consent-title {
        color: #e2e8f0;
    }
    
    .sms-consent-text {
        color: #e2e8f0;
    }
    
    .sms-consent-disclosure {
        background: #2d3748;
        color: #cbd5e0;
    }
    
    .sms-consent-disclosure p {
        color: #cbd5e0;
    }
}

/* Accessibility Improvements */
.sms-consent-checkbox:focus-within {
    outline: 2px solid var(--sms-primary);
    outline-offset: 2px;
}

.sms-consent-checkbox input[type="checkbox"]:focus {
    outline: 2px solid var(--sms-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .sms-consent-container {
        border-width: 3px;
    }
    
    .sms-consent-checkbox input[type="checkbox"] {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .sms-consent-container,
    .sms-consent-checkbox,
    .sms-consent-checkbox input[type="checkbox"],
    .sms-consent-icon {
        transition: none;
        animation: none;
    }
    
    .sms-consent-container:hover {
        transform: none;
    }
}
