/* ================= Compact Contact / Service Form Styling ================= */

#service-booking {
    background: rgba(3, 187, 179, 0.08);
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

#service-booking .row {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

#service-booking .card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(3, 187, 179, 0.12);
    background: #ffffff;
}

#service-form {
    width: 100%;
    padding: 14px !important;
}

#service-form label {
    color: #222;
    margin-bottom: 4px;
    font-size: 14px;
}

#service-form .form-group {
    margin-bottom: 10px;
}

#service-form .form-control {
    height: 42px;
    border: 1.4px solid rgba(3, 187, 179, 0.35);
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 14px;
    color: #222;
    background-color: #fff;
    box-shadow: 0 3px 8px rgba(3, 187, 179, 0.06);
    transition: all 0.25s ease;
}

#service-form textarea.form-control {
    height: 95px;
    resize: vertical;
}

#service-form .form-control:focus {
    border-color: #03bbb3;
    box-shadow: 0 0 0 3px rgba(3, 187, 179, 0.12);
    outline: none;
}

#service-form .form-control::placeholder {
    color: #777;
}

/* Phone row */
#service-form .d-flex {
    gap: 8px;
}

#service-form .w-30 {
    width: 38% !important;
}

#service-form .w-70 {
    width: 62% !important;
}

/* ================= Select2 Compact Styling ================= */

#service-form .select2-container {
    width: 100% !important;
}

#service-form .select2-container--default .select2-selection--single {
    height: 42px !important;
    border: 1.4px solid rgba(3, 187, 179, 0.35) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 3px 8px rgba(3, 187, 179, 0.06);
}

#service-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #222 !important;
    line-height: 42px !important;
    padding-left: 11px !important;
    font-size: 14px;
}

#service-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 8px !important;
}

.select2-dropdown {
    border: 1.4px solid rgba(3, 187, 179, 0.35) !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(3, 187, 179, 0.16);
}

.select2-search__field {
    border: 1px solid rgba(3, 187, 179, 0.35) !important;
    border-radius: 7px !important;
    padding: 7px 9px !important;
    outline: none !important;
}

.select2-results__option {
    padding: 8px 10px !important;
    font-size: 13px;
}

.select2-results__option--highlighted {
    background-color: #03bbb3 !important;
    color: #fff !important;
}

/* ================= Checkbox / Radio ================= */

#service-form #is_whatsapp {
    cursor: pointer;
    accent-color: #03bbb3;
}

#service-form label[for="is_whatsapp"] {
    cursor: pointer;
    margin-bottom: 0;
}

#service-form input[type="radio"] {
    accent-color: #03bbb3;
    margin-right: 5px;
    cursor: pointer;
}

#service-form .language-options,
#service-form .d-flex.gap-3 {
    gap: 10px !important;
    margin-top: 5px;
}

#service-form .d-flex.gap-3 label {
    background: rgba(3, 187, 179, 0.08);
    border: 1.4px solid rgba(3, 187, 179, 0.25);
    border-radius: 8px;
    padding: 7px 11px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s ease;
}

#service-form .d-flex.gap-3 label:hover {
    border-color: #03bbb3;
    background: rgba(162, 191, 51, 0.12);
}

/* Other language field animation */
#customize_lang_wrapper {
    animation: fadeDown 0.25s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* ================= Error Styling ================= */

#service-form small.text-danger {
    display: block;
    margin-top: 4px;
    color: #dc3545 !important;
    font-size: 13px !important;
}

/* Important: red dashed border for error field */
#service-form .errorfield {
    border: 2px dashed #dc3545 !important;
    box-shadow: none !important;
    background-color: rgba(220, 53, 69, 0.03);
}

/* ================= Submit Button ================= */

#service-form button[type="submit"] {
    min-width: 135px;
    height: 42px;
    border: 2px solid #a2bf33 !important;
    border-radius: 999px;
    background: #a2bf33;
    color: #fff !important;
    font-size: 14px;
    padding: 8px 22px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(162, 191, 51, 0.25);
}

#service-form button[type="submit"]:hover {
    background: #03bbb3;
    border-color: #03bbb3 !important;
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(3, 187, 179, 0.25);
}

#service-form button[type="submit"]:disabled {
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

/* ================= Loader ================= */

#loadingSpinner {
    display: none;
    text-align: center;
    margin-top: 12px;
}

#loadingSpinner .loader {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(3, 187, 179, 0.18);
    border-top-color: #03bbb3;
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

/* ================= Contact Info Cards ================= */

#service-booking .nav-link {
    color: #222;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#service-booking .nav-link i {
    color: #03bbb3;
}

/* ================= Responsive ================= */

@media (max-width: 991px) {
    #service-booking {
        padding: 25px 12px !important;
    }

    #service-booking .row {
        padding: 12px !important;
    }
}

@media (max-width: 767px) {
    #service-form .d-flex {
        flex-direction: column;
        gap: 8px;
    }

    #service-form .w-30,
    #service-form .w-70 {
        width: 100% !important;
    }

    #service-form .d-flex.gap-3 {
        flex-direction: column;
        gap: 8px !important;
    }

    #service-form .d-flex.gap-3 label {
        width: 100%;
    }

    #service-form button[type="submit"] {
        width: 100%;
    }

    #service-booking iframe {
        height: 220px;
    }
}

#service-form .form-main-error {
    display: block;
    margin-bottom: 8px;
    color: #dc3545 !important;
    font-size: 14px !important;
    text-align: center;
}

#service-form .form-main-error.d-none {
    display: none !important;
}