/**
 * Custom CSS for FraudGuard PHP
 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Quiz option hover effects */
.quiz-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-option.selected {
    border-color: #2c5aa0 !important;
    background-color: #eff6ff;
}

/* FAQ Accordion */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item button:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-content.hidden {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.faq-content:not(.hidden) {
    max-height: 2000px !important;
    opacity: 1 !important;
}

.faq-icon-plus,
.faq-icon-minus {
    transition: all 0.3s ease;
}

/* Scrollbar hide for services slider */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Service Cards Carousel */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Gradient backgrounds */
.gradient-bg-1 {
    background: linear-gradient(135deg, #0a1633 0%, #1a2847 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #d5dce8 0%, #e8ebf0 100%);
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to top button animation */
#scroll-to-top {
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Review cards */
.review-card {
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Star rating */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #2c5aa0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }

    /* Services slider mobile optimization */
    #services-slider {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    #services-slider>div>div {
        scroll-snap-align: start;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* Disabled state */
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* =========================================
   Quiz Form - Intl-Tel-Input (Phone) Styling
   Based on FinGuard design
   ========================================= */

/* Container takes full width */
.iti {
    width: 100% !important;
    display: block !important;
}

/* Phone input field styling - match other form fields */
.iti input[type="tel"],
.iti input.phone {
    width: 100% !important;
    padding: 12px 16px 12px 90px !important;
    border: 1px solid rgba(42, 92, 170, 0.2) !important;
    border-radius: 10px !important;
    outline: none !important;
    background: #fff !important;
    color: #1e293b !important;
    font-size: 15px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.iti input[type="tel"]:hover,
.iti input.phone:hover {
    border-color: rgba(42, 92, 170, 0.4) !important;
}

.iti input[type="tel"]:focus,
.iti input.phone:focus {
    border-color: #2c5aa0 !important;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1) !important;
}

/* Flag container - NO background */
.iti__flag-container {
    background: transparent !important;
}

/* Selected flag area - clean, no background */
.iti__selected-flag {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 8px 0 12px !important;
    border: none !important;
    outline: none !important;
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
    background: transparent !important;
    background-color: transparent !important;
}

/* Dial code styling */
.iti__selected-dial-code {
    color: #1e293b !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    margin-left: 6px !important;
    background: transparent !important;
}

/* Dropdown styling */
.iti__country-list {
    border-radius: 10px !important;
    border: 1px solid rgba(42, 92, 170, 0.2) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    max-height: 200px !important;
    margin-top: 4px !important;
    background: #fff !important;
}

.iti__country {
    padding: 10px 14px !important;
    transition: background 0.2s ease !important;
}

.iti__country:hover {
    background: rgba(42, 92, 170, 0.08) !important;
}

.iti__country.iti__highlight {
    background: rgba(42, 92, 170, 0.12) !important;
}

/* Validation messages */
span.valid-msg {
    color: #10b981 !important;
    font-size: 13px !important;
    margin-top: 6px !important;
    display: block !important;
}

span.error-msg {
    color: #ef4444 !important;
    font-size: 13px !important;
    margin-top: 6px !important;
    display: block !important;
}

/* Premium Form Styling */
.quiz-step input[type="text"],
.quiz-step input[type="email"],
.quiz-step input[type="tel"] {
    transition: all 0.2s ease-in-out;
    border: 1px solid #e2e8f0;
    /* gray-300 */
    background-color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    color: #1e293b;
    /* slate-800 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.quiz-step input[type="text"]:hover,
.quiz-step input[type="email"]:hover,
.quiz-step input[type="tel"]:hover {
    border-color: #cbd5e1;
    /* gray-400 */
}

.quiz-step input[type="text"]:focus,
.quiz-step input[type="email"]:focus,
.quiz-step input[type="tel"]:focus {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
    outline: none;
}

/* Label styling */
.quiz-step label {
    color: #334155;
    /* slate-700 */
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* Checkbox styling enhancement */
.quiz-step input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border-color: #cbd5e1;
    color: #2c5aa0;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-step input[type="checkbox"]:focus {
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
    border-color: #2c5aa0;
}

/* Button hover improvements */
#submit-btn {
    background-color: #2c5aa0;
    box-shadow: 0 4px 6px -1px rgba(44, 90, 160, 0.2), 0 2px 4px -1px rgba(44, 90, 160, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#submit-btn:hover {
    background-color: #1e40a0;
    /* Darker shade */
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(44, 90, 160, 0.3), 0 4px 6px -2px rgba(44, 90, 160, 0.15);
}

#submit-btn:active {
    transform: translateY(0);
}