/**
 * Contact Form 7 Custom Styling
 * Theme: Flatsome Child - Thu Đoàn Auto Hà Giang
 * Version: 1.0.6
 */

/* ==========================================================================
   BOOKING FORM CONTAINER & CARD
   ========================================================================== */
.thudoan-booking-form {
    background: #FFFFFF !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 16px !important;
    padding: 28px 28px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01) !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
}

@media (max-width: 640px) {
    .thudoan-booking-form {
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }
}

/* Form Live Badge / Header */
.booking-form-header {
    margin-bottom: 20px !important;
    text-align: left !important;
}

.form-live-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #FFF5F1 !important;
    border: 1px solid #FFD8C7 !important;
    border-radius: 30px !important;
    padding: 7px 15px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1A66FF !important;
    letter-spacing: 0.3px !important;
    line-height: 1.4 !important;
}

.live-pulse {
    width: 8px !important;
    height: 8px !important;
    background: #10B981 !important;
    border-radius: 50% !important;
    display: inline-block !important;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4) !important;
    animation: thudoanPulseGreen 1.8s infinite !important;
    flex-shrink: 0 !important;
}

@keyframes thudoanPulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   2-COLUMN FORM GRID
   ========================================================================== */
.booking-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 18px !important;
}

@media (max-width: 640px) {
    .booking-form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
}

.form-group-full {
    grid-column: 1 / -1 !important;
}

/* ==========================================================================
   LABELS
   ========================================================================== */
.form-label {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1.3 !important;
}

.form-label .required {
    color: #1A66FF !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   INPUTS WITH THEMIFY ICONS
   ========================================================================== */
.input-with-icon {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.input-with-icon .field-icon {
    position: absolute !important;
    left: 14px !important;
    top: 24px !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
    color: #9CA3AF !important;
    pointer-events: none !important;
    z-index: 3 !important;
    line-height: 1 !important;
    transition: color 0.2s ease !important;
}

.input-with-icon.icon-align-top .field-icon {
    top: 15px !important;
    transform: none !important;
}

.input-with-icon:focus-within .field-icon {
    color: #1A66FF !important;
}

.input-with-icon .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Input, Select, Textarea Control Styles */
.thudoan-booking-form input[type="text"],
.thudoan-booking-form input[type="tel"],
.thudoan-booking-form input[type="email"],
.thudoan-booking-form select,
.thudoan-booking-form textarea {
    width: 100% !important;
    padding: 11px 14px 11px 42px !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    background: #F9FAFB !important;
    color: #111827 !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    height: 48px !important;
    line-height: 1.4 !important;
    transition: all 0.22s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Select specific arrow */
.thudoan-booking-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    padding-right: 38px !important;
    cursor: pointer !important;
}

.thudoan-booking-form textarea.form-textarea,
.thudoan-booking-form textarea {
    height: 96px !important;
    padding-top: 12px !important;
    resize: vertical !important;
}

/* Input Placeholder */
.thudoan-booking-form input::placeholder,
.thudoan-booking-form textarea::placeholder {
    color: #9CA3AF !important;
    font-size: 13.5px !important;
}

/* Input Hover & Focus */
.thudoan-booking-form input:hover,
.thudoan-booking-form select:hover,
.thudoan-booking-form textarea:hover {
    border-color: #D1D5DB !important;
    background: #FFFFFF !important;
}

.thudoan-booking-form input:focus,
.thudoan-booking-form select:focus,
.thudoan-booking-form textarea:focus {
    border-color: #1A66FF !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3.5px rgba(26, 102, 255, 0.14) !important;
}

/* ==========================================================================
   SUBMIT BUTTON & GUARANTEE FOOTER
   ========================================================================== */
.booking-form-footer {
    margin-top: 22px !important;
    text-align: center !important;
}

.btn-booking-submit,
.thudoan-booking-form input[type="submit"] {
    width: 100% !important;
    height: 50px !important;
    line-height: 50px !important;
    background: linear-gradient(135deg, #3B82F6 0%, #1A66FF 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-shadow: 0 8px 20px rgba(26, 102, 255, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 20px !important;
    margin: 0 !important;
    display: block !important;
    text-align: center !important;
}

.btn-booking-submit:hover,
.thudoan-booking-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #1A66FF 0%, #1554C0 100%) !important;
    box-shadow: 0 12px 24px rgba(26, 102, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

.btn-booking-submit:active,
.thudoan-booking-form input[type="submit"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 12px rgba(26, 102, 255, 0.3) !important;
}

.booking-guarantee-note {
    margin-top: 14px !important;
    font-size: 12.5px !important;
    color: #6B7280 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
}

.booking-guarantee-note i {
    color: #1A66FF !important;
    font-size: 13px !important;
    margin-right: 4px !important;
}

.booking-guarantee-note .dot {
    color: #D1D5DB !important;
}

/* ==========================================================================
   CF7 SPINNER & RESPONSE MESSAGES
   ========================================================================== */
.wpcf7-spinner {
    margin: 10px auto 0 !important;
    display: block !important;
}

.wpcf7-not-valid-tip {
    font-size: 12px !important;
    color: #EF4444 !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
}

.wpcf7-response-output {
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 12px 18px !important;
    margin: 16px 0 0 0 !important;
    text-align: center !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #ECFDF5 !important;
    border: 1px solid #10B981 !important;
    color: #065F46 !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
    background: #FEF2F2 !important;
    border: 1px solid #EF4444 !important;
    color: #991B1B !important;
}

/* ==========================================================================
   RIGHT SIDE CONTACT INFO CARD
   ========================================================================== */
.thudoan-contact-info-card {
    background: #FFFFFF !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 16px !important;
    padding: 28px 26px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01) !important;
    box-sizing: border-box !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.contact-card-header {
    margin-bottom: 22px !important;
    padding-bottom: 14px !important;
    border-bottom: 2px solid #F3F4F6 !important;
}

.contact-card-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #1A1B1E !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.3px !important;
}

.contact-card-subtitle {
    font-size: 13.5px !important;
    color: #6B7280 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.contact-info-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
}

.contact-info-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
    font-size: 14px !important;
    color: #374151 !important;
    line-height: 1.5 !important;
}

.contact-info-list li:last-child {
    margin-bottom: 0 !important;
}

.contact-info-list li i {
    font-size: 18px !important;
    color: #1A66FF !important;
    background: #FFF5F1 !important;
    border: 1px solid #FFD8C7 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
}

.contact-info-list li strong {
    color: #111827 !important;
    font-weight: 700 !important;
    display: block !important;
    margin-bottom: 2px !important;
}

.contact-info-list li p {
    margin: 0 !important;
    color: #4B5563 !important;
}

.contact-info-list li a {
    color: #1A66FF !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
}

.contact-info-list li a:hover {
    color: #1554C0 !important;
    text-decoration: underline !important;
}

.contact-quick-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: auto !important;
    padding-top: 20px !important;
    border-top: 1px dashed #E5E7EB !important;
}

.btn-quick-call {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #3B82F6 0%, #1A66FF 100%) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    text-align: center !important;
    padding: 13px 20px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(26, 102, 255, 0.3) !important;
    transition: all 0.25s ease !important;
}

.btn-quick-call:hover {
    background: linear-gradient(135deg, #1A66FF 0%, #1554C0 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 18px rgba(26, 102, 255, 0.4) !important;
    color: #FFFFFF !important;
}

.btn-quick-zalo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #0068FF !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    text-align: center !important;
    padding: 13px 20px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.25) !important;
    transition: all 0.25s ease !important;
}

.btn-quick-zalo:hover {
    background: #0054CC !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 18px rgba(0, 104, 255, 0.35) !important;
    color: #FFFFFF !important;
}
