/* Clean Booking Form with reCAPTCHA */
.clean-booking-form {
    font-family: 'Poppins', sans-serif !important;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.booking-form {
    background: white;
    padding: 30px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

.message-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: normal;
}

/* WhatsApp subtitle styling */
.whatsapp-subtitle {
    font-size: 0.82rem;
    color: #25D366;
    margin-bottom: 8px;
    font-weight: normal;
    font-style: italic;
    display: flex;
    align-items: center;
}

.whatsapp-subtitle::before {
    content: "📱";
    margin-right: 5px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.form-control::placeholder {
    color: #999;
    font-weight: 300;
}

.form-control.error {
    border-color: #e74c3c;
}

/* Phone field with WhatsApp hint styling */
#phone {
    position: relative;
}

#phone:focus {
    border-color: #25D366 !important;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.1) !important;
}

/* Date and Time Picker Styling */
.date-picker,
.time-picker {
    cursor: pointer;
    position: relative;
}

.date-picker::-webkit-calendar-picker-indicator,
.time-picker::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    background-size: 16px;
    filter: invert(0.4);
}

.date-picker:hover,
.time-picker:hover {
    border-color: #3498db;
}

/* Program Selection with Blue Radio Buttons */
.program-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.program-option {
    position: relative;
}

.program-option input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-option input[type="radio"]:checked {
    border-color: #3498db;
    background-color: #3498db;
}

.program-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: white;
}

.program-option input[type="radio"]:hover {
    border-color: #3498db;
}

.program-option label {
    font-size: 0.9rem;
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    border: 1px solid transparent;
}

.program-option label:hover {
    background-color: #f0f8ff;
    border-color: #e3f2fd;
}

.program-option input[type="radio"]:checked + label {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
    border-color: #3498db;
}

/* Textarea */
.form-control[rows] {
    min-height: 100px;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
}

/* reCAPTCHA styling */
.recaptcha-group {
    text-align: center;
    margin: 25px 0;
}

.g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

/* Perfect Black Centered Submit Button */
.submit-button {
    background: #000000 !important;
    color: #ffffff !important;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 200px;

    /* Multiple centering methods for maximum compatibility */
    display: block !important;
    margin: 0 auto !important;
    width: 200px !important;
}

.submit-button:hover {
    background: #333333 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-button:active {
    background: #1a1a1a !important;
    color: #ffffff !important;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    color: #ffffff !important;
}

/* Loading state for submit button */
.submit-button.loading {
    background: #666666 !important;
    color: #ffffff !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Security Note */
.security-note {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Phone help text styling with WhatsApp theme */
.phone-help {
    color: #25D366 !important;
    font-size: 0.8em !important;
    margin-top: 5px !important;
    display: block !important;
    font-style: italic;
}

.phone-help::before {
    content: "📱 ";
}

/* WhatsApp helper text */
.whatsapp-help {
    color: #25D366 !important;
    font-size: 0.8em !important;
    margin-top: 5px !important;
    display: block !important;
    font-style: italic;
    font-weight: 500;
}

/* Loading State */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clean-booking-form {
        padding: 10px;
    }

    .booking-form {
        padding: 20px;
    }

    .program-selection {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
    }

    .submit-button {
        width: 180px !important;
        min-width: 180px !important;
        font-size: 0.95rem;
        padding: 14px 25px;
    }

    .whatsapp-subtitle {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .submit-button {
        width: 160px !important;
        min-width: 160px !important;
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .whatsapp-subtitle {
        font-size: 0.75rem;
    }
}

/* Enhanced Date/Time Picker Support */
input[type="date"],
input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    background: #f8f9fa;
    position: relative;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    display: flex;
}

input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit {
    color: #2c3e50;
    padding: 0;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-inner-spin-button {
    display: none;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3e%3cline x1='16' y1='2' x2='16' y2='6'/%3e%3cline x1='8' y1='2' x2='8' y2='6'/%3e%3cline x1='3' y1='10' x2='21' y2='10'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 16px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpolyline points='12,6 12,12 16,14'/%3e%3c/svg%3e");
}

/* Enhanced focus states */
.form-control:focus,
.date-picker:focus,
.time-picker:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1) !important;
}

/* Force center alignment - additional fallback styles */
.submit-button,
button[type="submit"] {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    float: none !important;
}

/* Override any theme styles that might interfere */
.clean-booking-form .submit-button,
.booking-form .submit-button,
form .submit-button {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 200px !important;
    max-width: 200px !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}