/* Lead Generation Registration Styles */


/* Lead Generation Form Styles */
.webinar-registration-form {
    margin:0;
}

.gated-webinar-form-content {
    padding: 1.3rem !important;
    padding-bottom: 1rem !important;
    border-radius: 5px !important;
    background: #f2f2f2 !important;
    z-index: 0 !important;
    position: relative !important;
    width: 100% !important;
    font-family: "Titillium Web", Sans-serif !important;
    margin-bottom:35px;
    margin-top:0 !important
}


.gated-webinar-form-content label {
    color:#333333 !important;
    font-size:18px !important;
    font-weight:400 !important;
}

.gated-webinar-form-content .checkbox-container .checkbox-wrap label {
    font-size:16px !important;
    font-weight:normal !important;
}

/* --- Form Input Styling --- */
.form-questions-section input[type='checkbox'] {
    width: 1.25rem !important;
    min-width: 1.25rem !important;
    height: 1.25rem !important;
    min-height: 1.25rem !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: 100% !important;
    background-color: #fff !important;
    border:1px solid #ddd !important;
}

.form-questions-section label.question-label {
    margin-bottom: 0 !important;
    display: block !important;
    font-size: 19px !important;
    color: #424242 !important;
}

.form-questions-section label.answer-label,
.form-questions-section select,
.form-questions-section textarea {
    position: relative !important;
    top: -15px !important;
    display: block !important;
    font-size:16px !important;
}

#speakerQuestion {
    width: 100% !important;
    background: #fff !important;
}

.form-questions-section select {
    width: 100% !important;
    background: #fff !important;
}

.form-questions-section input[type='radio'],
.form-questions-section input[type='checkbox'],
.form-questions-section textarea,
.form-questions-section select {
    background-color: #fff !important;
    opacity: 1 !important;
    position: relative !important;
    margin-right: 8px !important;
}

.form-questions-section input[type='radio'],
.form-questions-section input[type='checkbox'] {
    width:auto !important;
}

.form-questions-section textarea {
    margin-bottom: 20px !important;
}

.form-questions-section label.answer-label,
.form-questions-section select,
.form-questions-section textarea {
    position: relative !important;
    margin-top: 15px !important;
    top: 0 !important;
    display: block !important;
    border:1px solid #ddd !important;
    min-height:2.6rem !important;
    height:2.6rem !important;
    padding:12px 15px !important;
}

.form-questions-section textarea {
width:100% !important;
margin-bottom:10px !important;
font-family: "Titillium Web", Sans-serif !important;
height:150px !important;
}

/* ---------------------------------------------------------------
    #8.1. ACF Radio Button & Checkbox Alignment
--------------------------------------------------------------- */

/* --- ACF Radio Button Label Styling --- */
.radio-options label,
.checkbox-options label {
    display: flex !important;
    align-items: center !important;
    margin: 0 0 15px 0 !important;
    font-family: "Titillium Web", Sans-serif !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

.radio-options label input[type="radio"],
.checkbox-options label input[type="checkbox"] {
    margin: 0 8px 0 0 !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

/* --- ACF Checkbox Label Styling --- */
.acf-checkbox-label {
    display: flex !important;
    align-items: center !important;
    margin: 0 0 15px 0 !important;
    font-family: "Titillium Web", Sans-serif !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

.acf-checkbox-label input[type="checkbox"] {
    margin: 0 8px 0 0 !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    border:1px solid #2f2f2f !important;
}

/* Checkbox Label Alignment */
.form-field.optin-field .checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    margin: 0 !important;
    font-family: "Titillium Web", Sans-serif !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

.form-field {
    margin-bottom:0 !important;
}

.checkbox-item {
    background-color: #eaeaea !important;
}

.checkbox-group.consent-group {
    margin-top:20px !important;
    padding-top:0 !important;
}

.checkbox-item input {
    border:1px solid #bababa !important;
}

.ks-menu li a {
    text-align:center !important;
}

.checkbox-item input[type="checkbox"]:checked + label {
    color:#fff !important;
}

.ks-menu li a:hover {
    background-color:#871f80 !important;
}

.button.global.full-width {
    width:100% !important;
    min-width:100% !important;
    max-width:100% !important;
}

.checkbox-group.consent-group label.checkbox-label {
    font-size:15px !important;
    line-height:22px !important;
}

.checkbox-label input[type="checkbox"] {
    margin: 0 8px 0 0 !important;
    vertical-align: top !important;
    flex-shrink: 0 !important;
}


/* Split Button Styles */
.ks-split-btn {
    position: relative;
    display: inline-block;
    width: 100%;
}

.ks-main-btn-global {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.btn-blue {
    background: #009fe3;
    color: white;
}

.btn-blue:hover {
    background: #0086c3;
}

.btn-green {
    background: #28a745;
    color: white;
}

.btn-green:hover {
    background: #218838;
}

.ks-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: transparent;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.ks-menu li {
    border-bottom: 0;
}

.ks-menu li:last-child {
    border-bottom: none;
}

.ks-menu a,
.ks-menu button {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.ks-menu a:hover,
.ks-menu button:hover {
    background: #f8f9fa;
}

.reveal-text {
    color: #5c5c5c;
    background: #f2f2f2;
    font-size: 0.75rem;
    padding:0.85rem;
    border-radius: 0 0 3px 3px;
}

.form-submit-section .button.global.full-width {
    width: 100% !important;
    min-width:100% !important;
    max-width:100% !important
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-slow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
/* CodyHouse Dialog Styles for Remove Confirmation */
.cd-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-dialog.cd-dialog--visible {
    opacity: 1;
    visibility: visible;
}

.cd-dialog__container {
    width: 90%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 0.25em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-40px);
    transition: transform 0.3s;
}

.cd-dialog--visible .cd-dialog__container {
    transform: translateY(0);
}

.cd-dialog__content {
    padding: 3em 2em;
    text-align: center;
}

.cd-dialog__content h2 {
    font-size: 1.6rem;
    margin-bottom: 1em;
    color: #333;
    line-height: 1.2;
}

.cd-dialog__content p {
    font-size: 1.1rem;
    margin-bottom: 2em;
    color: #666;
    line-height: 1.4;
}

.cd-dialog__buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
}

.cd-dialog__action {
    background: transparent;
    border: 2px solid;
    border-radius: 0.25em;
    padding: 0.8em 2em;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
    text-align: center;
}

.cd-dialog__action--primary {
    background: #d32f2f;
    border-color: #d32f2f;
    color: #ffffff;
}

.cd-dialog__action--primary:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

.cd-dialog__action--secondary {
    border-color: #999;
    color: #666;
}

.cd-dialog__action--secondary:hover {
    background: #f5f5f5;
    border-color: #666;
    color: #333;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cd-dialog__container {
        width: 95%;
        margin: 1em;
    }
    
    .cd-dialog__content {
        padding: 2em 1.5em;
    }
    
    .cd-dialog__content h2 {
        font-size: 1.4rem;
    }
    
    .cd-dialog__content p {
        font-size: 1rem;
    }
    
    .cd-dialog__buttons {
        flex-direction: column;
        gap: 0.8em;
    }
    
    .cd-dialog__action {
        width: 100%;
    }
}

/* CodyHouse Toast Notification Styles */
.cd-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d5016;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 100001;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.3s ease;
    max-width: 400px;
    width: 90%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cd-toast.cd-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cd-toast__icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-toast__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.cd-toast__content {
    flex-grow: 1;
}

.cd-toast__title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.2;
}

.cd-toast__message {
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
    opacity: 0.9;
    line-height: 1.3;
}

.cd-toast__close {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.125rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.cd-toast__close:hover {
    opacity: 1;
}

.cd-toast__close svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

/* Toast variants */
.cd-toast--success {
    background: #28a745;
}

.cd-toast--error {
    background: #c62d42;
}

.cd-toast--warning {
    background: #f59e0b;
}

.cd-toast--info {
    background: #3b82f6;
}

/* Mobile toast adjustments */
@media (max-width: 768px) {
    .cd-toast {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateY(20px);
        max-width: none;
        width: auto;
    }
    
    .cd-toast.cd-toast--visible {
        transform: translateY(0);
    }
    
    .cd-toast__title {
        font-size: 0.9rem;
    }
    
    .cd-toast__message {
        font-size: 0.8rem;
    }
}


/* Loading Overlay Styles */
.form-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00A4EB 0%, #008DC7 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647; /* Maximum possible z-index value */
    backdrop-filter: blur(8px);
}

.loader-content {
    text-align: center;
    color: white;
    max-width: 520px;
    padding: 40px 20px;
}

.loader-content h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 500;
    color: white;
    line-height: 1.2;
}

.loader-spinner {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress Circle */
.progress-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.progress-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.progress-circle-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid transparent;
    border-top-color: white;
    border-right-color: white;
    transform: rotate(-90deg);
    transition: transform 0.5s ease;
    z-index: 2;
}

.loader-icon {
    font-size: 4rem;
    color: white;
    z-index: 3;
    position: relative;
    font-family: 'Font Awesome 6 Pro', 'Helvetica', 'Arial', sans-serif !important;
}

.loader-content p {
    font-size: 1.3rem;
    color: white;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

.loader-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.loader-dots span {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: loader-dots 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
.loader-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loader-dots {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Countdown Animation Styles */
.countdown-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 4;
}

.countdown-container.active {
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.countdown-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 1s ease-in-out infinite alternate, countdownPulse 1s ease-in-out;
}

.countdown-message {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 1.5s ease-in-out infinite alternate, messageSlideUp 0.8s ease-out;
    line-height: 1.2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes countdownPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes messageSlideUp {
    0% { 
        transform: translateY(30px); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* Progress states */
.progress-0 { transform: rotate(-90deg); }
.progress-25 { transform: rotate(-45deg); }
.progress-50 { transform: rotate(0deg); }
.progress-75 { transform: rotate(45deg); }
.progress-100 { transform: rotate(270deg); }

/* Responsive loading overlay */
@media (max-width: 768px) {
    .loader-content h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .loader-spinner {
        width: 200px;
        height: 200px;
        margin: 0 auto 30px;
    }
    
    .progress-circle::before,
    .progress-circle-fill {
        border-width: 6px;
    }
    
    .loader-icon {
        font-size: 3rem;
    }
    
    .loader-content p {
        font-size: 1rem;
    }
    
    .countdown-number {
        font-size: 3rem;
    }
    
    .countdown-message {
        font-size: 1.5rem;
    }
}

.dtr-form-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.progress-text {
    color: #333;
    font-size: 16px;
}

.webinar-success-message {
    text-align: center;
    padding: 2rem;
    background: #f8fffa;
    border: 1px solid #4caf50;
    border-radius: 4px;
    margin: 1rem 0;
}

.webinar-success-message h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

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

/* Submit Button States */
#submitWebinarBtn {
    transition: all 0.3s ease;
}

#submitWebinarBtn:disabled,
#submitWebinarBtn.submitting {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #cccccc !important;
    border-color: #cccccc !important;
}

/* Removed button's internal loading spinner - overlay loader is used instead */