/* Component-specific styles for CleanWiz */

/* Form Components */
.form-step {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.form-step.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.message-box {
    display: none;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.message-box.error {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
}

.message-box.success {
    background-color: #d1fae5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.selected-option-btn {
    background-color: #ADD8E6;
    color: #0047FF;
    border-color: #0047FF;
}

/* Input styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    background-color: #F3F4F6;
}

/* Number input components */
.number-input-container {
    position: relative;
    width: 120px;
}

.number-input {
    width: 100%;
    padding-right: 2.5rem;
    background-color: #F3F4F6;
}

.number-input-arrows {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arrow-btn {
    padding: 0 0.5rem;
    cursor: pointer;
    color: #9CA3AF;
}

.arrow-btn:hover {
    color: #4B5563;
}

/* Flatpickr Calendar Styling */
.flatpickr-custom {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    font-family: 'Inter', sans-serif;
    background-color: white;
}

.flatpickr-custom .flatpickr-months {
    background: linear-gradient(135deg, #0047FF 0%, #2563eb 100%);
    color: white;
    border-radius: 14px 14px 0 0;
    padding: 12px;
}

.flatpickr-custom .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-custom .flatpickr-current-month .numInputWrapper {
    background-color: transparent;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.flatpickr-custom .flatpickr-current-month input.cur-year {
    color: white;
    font-weight: 700;
}

.flatpickr-custom .flatpickr-prev-month,
.flatpickr-custom .flatpickr-next-month {
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.flatpickr-custom .flatpickr-prev-month:hover,
.flatpickr-custom .flatpickr-next-month:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.flatpickr-custom .flatpickr-weekdays {
    background-color: #f8fafc;
    padding: 8px 0;
}

.flatpickr-custom .flatpickr-weekday {
    color: #374151;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.flatpickr-custom .flatpickr-days {
    background-color: white;
    border-radius: 0 0 14px 14px;
    padding: 8px;
}

.flatpickr-custom .flatpickr-day {
    border-radius: 10px;
    margin: 1px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    border: 2px solid transparent;
    width: 38px;
    height: 38px;
    line-height: 34px;
    transition: all 0.2s;
}

.flatpickr-custom .flatpickr-day:hover {
    background-color: #e0f2fe;
    border-color: #0047FF;
    color: #0047FF;
    transform: scale(1.05);
}

.flatpickr-custom .flatpickr-day.selected {
    background-color: #0047FF;
    border-color: #0047FF;
    color: white;
    font-weight: 700;
}

.flatpickr-custom .flatpickr-day.selected:hover {
    background-color: #0047FF;
    transform: scale(1.05);
}

.flatpickr-custom .flatpickr-day.today {
    background-color: #fff7ed;
    border-color: #FF8C00;
    color: #ea580c;
    font-weight: 700;
}

.flatpickr-custom .flatpickr-day.today:hover {
    background-color: #ffedd5;
    border-color: #FF8C00;
    color: #ea580c;
}

.flatpickr-custom .flatpickr-day.prevMonthDay,
.flatpickr-custom .flatpickr-day.nextMonthDay {
    color: #9ca3af;
}

.flatpickr-custom .flatpickr-day.prevMonthDay:hover,
.flatpickr-custom .flatpickr-day.nextMonthDay:hover {
    color: #6b7280;
    background-color: #f3f4f6;
}

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

/* Testimonials */
.testimonial-dot {
    transition: all 0.3s ease;
}

/* Icon styling */
#bedroom-icon {
    font-size: 2.5rem;
    line-height: 1;
}

/* Header gradient background */
.header-gradient-bg {
    /* Match hero gradient for seamless look */
    background-image: linear-gradient(135deg, rgba(7, 36, 118, 0.878) 0%, rgba(45, 96, 225, 0.862) 100%);
}

/* Custom gradient for hero sections */
.hero-gradient-bg {
    background-image: linear-gradient(135deg, rgba(7, 36, 118, 0.878) 0%, rgba(16, 71, 213, 0.862) 100%), url('../images/hero/hero2.png');
    background-size: cover;
    background-position: center;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    /* Make time period options full-width and centered on small screens */
    .time-period-radio-label {
        width: 100%;
        justify-content: center;
    }
}

/* Mascot callout pointing to form */
.mascot-callout {
    position: absolute;
    right: -14px; /* tuck near the form column */
    top: 40%;
    transform: translateY(-20%);
}

.speech-bubble {
    position: relative;
    background: #ffffff;
    color: #111827;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
}
.speech-bubble::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-style: solid;
    border-width: 8px 0 8px 10px; /* triangle pointing right */
    border-color: transparent transparent transparent #ffffff;
}

@keyframes attentionPulse {
    0%, 100% { transform: translateY(-20%) scale(1); }
    50% { transform: translateY(-20%) scale(1.03); }
}
.attention-pulse {
    animation: attentionPulse 2.2s ease-in-out infinite;
}
