/* -------------------------
   Booking Form Styling
   ------------------------- */
#bfForm {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 20px 15px !important;
    max-width: 600px !important;
    margin: 20px auto !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    font-family: 'Segoe UI', sans-serif !important;
}

/* Radio section */
#bfForm > div:first-child {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    margin-bottom: 20px !important;
}

#bfForm input[type="radio"] {
    accent-color: #0066ff !important;
    transform: scale(1.2) !important;
    margin-right: 6px !important;
}

#bfForm label {
    font-size: 18px !important;
    color: #222 !important;
    font-weight: 500 !important;
}

/* -------------------------
   Two-column layout
   ------------------------- */
#bfForm div:nth-child(2),
#bfForm div:nth-child(3),
#bfForm div:nth-child(4),
#bfForm div:nth-child(6),
#bfForm div:last-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
    flex-wrap: nowrap !important;
}

/* Inputs & Selects */
#bfForm input[type="text"],
#bfForm input[type="email"],
#bfForm input[type="tel"],
#bfForm select {
    width: 100% !important;
    height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid #888 !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important;
}

/* Placeholder text */
#bfForm input::placeholder {
    color: #888 !important;
}

/* Focus highlight */
#bfForm input:focus,
#bfForm select:focus {
    border-color: #ff7b00 !important;
    box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.2) !important;
}

/* -------------------------
   Name + Select Service Row
   ------------------------- */
#bfForm .half-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
    flex-wrap: nowrap !important;
}

#bfForm .half-row input[type="text"],
#bfForm .half-row select {
    flex: 1 1 50% !important;
    max-width: 50% !important;
}

/* Select styling (arrow + placeholder color fix) */
#bfForm select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: linear-gradient(45deg, transparent 50%, #666 50%),
                      linear-gradient(135deg, #666 50%, transparent 50%) !important;
    background-position: calc(100% - 18px) center, calc(100% - 13px) center !important;
    background-size: 6px 6px, 6px 6px !important;
    background-repeat: no-repeat !important;
    padding-right: 30px !important;
    color: #888 !important; /* placeholder color identical to input placeholder */
}

#bfForm select.filled {
    color: #222 !important;
}

#bfForm select option[value=""] {
    color: #888 !important;
}

/* -------------------------
   ZIP Checker
   ------------------------- */
.cz-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cz-row input[type="text"] {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    height: 44px !important;
    padding: 0 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    text-align: center !important;
}

/* ZIP placeholder left, input centered */
.cz-row input.cz-zip-input:placeholder-shown {
    text-align: left !important;
    padding-left: 12px !important;
}

.cz-row input.cz-zip-input:not(:placeholder-shown) {
    text-align: center !important;
}

/* ZIP Check Button */
.cz-row button {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    height: 44px !important;
    background: #ff7b00 !important;
    color: #fff !important;
    border: 1px solid #ff7b00 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cz-row button:hover {
    background: #ff9500 !important;
    border-color: #ff9500 !important;
    transform: translateY(-1px) !important;
}

/* -------------------------
   ZIP Checker Result
   ------------------------- */
.cz-result {
    display: none !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin-top: 14px !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    border: 1px solid transparent !important;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.25s ease-in-out !important;
}

.cz-result.show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0);
    margin-bottom: 18px !important;
}

.cz-result.success {
    background: #e8ffe8 !important;
    border-color: #59b659 !important;
    color: #1e7c1e !important;
}

.cz-result.error {
    background: #ffeaea !important;
    border-color: #e15b5b !important;
    color: #b00000 !important;
}

.cz-result.info {
    background: #f7f7f7 !important;
    border-color: #ddd !important;
    color: #444 !important;
}

/* -------------------------
   Bottom Buttons
   ------------------------- */
#bfForm .bf-buttons {
    display: flex !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

#bfForm .bf-buttons button {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    height: 44px !important;
    background: #ff7b00 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: 1px solid #ff7b00 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#bfForm .bf-buttons button:hover {
    background: #ff9500 !important;
    border-color: #ff9500 !important;
    transform: translateY(-1px) !important;
}

/* -------------------------
   Mandatory Field Star Style
   ------------------------- */
#bfForm input[required]::placeholder,
#bfForm select option[value=""]:first-child::before {
    color: #888 !important;
}

#bfForm ::placeholder {
    font-style: normal !important;
}

/* Red star style — consistent and subtle */
#bfForm input::placeholder,
#bfForm select option[value=""]::before {
    content: "*" !important;
}

#bfForm ::placeholder,
#bfForm select option[value=""] {
    position: relative !important;
}

#bfForm [placeholder*="*"]::first-letter {
    color: #d60000 !important; /* red mandatory star */
}

/* -------------------------
   Responsive Fixes
   ------------------------- */
@media (max-width: 600px) {
    #bfForm .half-row {
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    #bfForm .half-row input[type="text"],
    #bfForm .half-row select {
        flex: 1 1 50% !important;
        max-width: 50% !important;
        height: 44px !important;
    }

    .cz-row {
        align-items: stretch !important;
    }

    .cz-row input[type="text"],
    .cz-row button {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 15px !important;
    }

    #bfForm .bf-buttons button {
        height: 44px !important;
        font-size: 15px !important;
    }

    .cz-result {
        font-size: 14px !important;
        padding: 8px 10px !important;
        margin-top: 12px !important;
    }
}
