/* Email Verification Container */
.bkntc-email-verification-container {
    margin-top: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.bkntc-verification-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Header */
.bkntc-verification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.bkntc-verification-icon {
    flex-shrink: 0;
}

.bkntc-verification-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    font-family: 'Poppins', sans-serif;
}

/* Info Section */
.bkntc-verification-info {
    margin-bottom: 24px;
}

.bkntc-verification-message {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.bkntc-verification-email {
    display: block;
    margin-top: 4px;
    color: #1f2937;
    font-weight: 500;
    word-break: break-all;
}

/* OTP Input */
.bkntc-otp-input-container {
    position: relative;
    margin-bottom: 20px;
}

.bkntc-otp-input {
    width: 100%;
    padding: 16px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.3s ease;
    font-family: 'Monaco', 'Courier New', monospace;
}

.bkntc-otp-input:focus {
    outline: none;
    border-color: #6c70dc;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(108, 112, 220, 0.1);
}

.bkntc-otp-input.error {
    border-color: #ef4444;
    animation: shake 0.5s ease-in-out;
}

.bkntc-otp-label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: #ffffff;
    padding: 0 8px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Verification Actions */
.bkntc-verification-actions {
    margin-bottom: 16px;
}

.bkntc-verify-btn {
    width: 100%;
    padding: 14px 24px;
    background: #6c70dc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.bkntc-verify-btn:hover:not(:disabled) {
    background: #5b5fc7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 112, 220, 0.3);
}

.bkntc-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bkntc-spinner {
    animation: spin 1s linear infinite;
}

/* Footer */
.bkntc-verification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.bkntc-resend-btn,
.bkntc-change-email-btn {
    background: none;
    border: none;
    color: #6c70dc;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.bkntc-resend-btn:hover:not(:disabled),
.bkntc-change-email-btn:hover {
    background: rgba(108, 112, 220, 0.1);
}

.bkntc-resend-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.bkntc-resend-timer {
    margin-left: 4px;
    color: #9ca3af;
    font-weight: 400;
}

/* Send Verification Button */
.bkntc-email-send-container {
    margin-top: 12px;
}

.bkntc-send-verification-btn {
    padding: 12px 20px;
    background: #4FBF65;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.bkntc-send-verification-btn:hover:not(:disabled) {
    background: #3da652;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 191, 101, 0.3);
}

.bkntc-send-verification-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Container */
.bkntc-verification-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-top: 12px;
    animation: fadeIn 0.3s ease-in-out;
}

.bkntc-verification-success svg {
    flex-shrink: 0;
}

.bkntc-verification-success span {
    color: #166534;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .bkntc-verification-box {
        padding: 16px;
    }
    
    .bkntc-verification-title {
        font-size: 16px;
    }
    
    .bkntc-otp-input {
        font-size: 20px;
        letter-spacing: 4px;
        padding: 14px;
    }
    
    .bkntc-verify-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .bkntc-verification-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .bkntc-resend-btn,
    .bkntc-change-email-btn {
        width: 100%;
        text-align: center;
    }
}

/* Integration with Booknetic form */
#bkntc_input_email.readonly,
#bkntc_input_email[readonly] {
    background-color: #f9fafb;
    cursor: not-allowed;
}

/* Hide default Booknetic elements that conflict */
.bkntc-email-verification-container:not(:empty) ~ .form-text,
.bkntc-verification-success:visible ~ .form-text {
    display: none;
}

/* Ensure proper spacing */
.form-group .bkntc-email-verification-container:first-of-type {
    margin-top: 12px;
}

/* Remove old styles that are no longer needed */
.bkntc_label-container,
.bkntc_input_email-container,
.bkntc_change_email_container,
.email-verification-success-container,
.email-verification-btn {
    /* Reset any old styles */
    all: unset;
}