/* Booking Form Styles */
.booking-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.booking-progress::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.progress-step span {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 12px;
}

.progress-step p {
    color: #999;
    font-size: 12px;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

.progress-step.active span {
    background: #e4022b;
}

.progress-step.active p {
    color: #212624;
}

.progress-step.completed span {
    background: #0098b2;
}

.booking-form {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Service Type Cards */
.service-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.service-type-card {
    border: 3px solid #0097b2;
    border-radius: 6px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-type-card:hover {
    border-color: #0098b2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,152,178,0.1);
}

.service-type-card .card-content {
    text-align: center;
}

.service-type-card .card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-type-card .card-icon svg {
    width: 25px;
    height: 25px;
    fill: #212624;
}

.service-type-card h3 {
    color: #212624;
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
}

.service-type-card p {
    color: #777;
    margin: 0;
    font-size: 12px;
}

.hidden-radio {
    position: absolute;
    opacity: 0;
}

.hidden-radio:checked + .card-content {
    background-color: rgb(0 151 178);
    border: 2px solid #0097b2;
    border-radius: 6px;
    margin: -20px;
    padding: 20px;
}

.hidden-radio:checked + .card-content .card-icon {
    background: #e4022b;
}

.hidden-radio:checked + .card-content .card-icon svg {
    fill: #fff;
}

.hidden-radio:checked + .card-content h3 {
    color: #ffffff;
}

/* Service Selection Layout */
.service-selection {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.service-option {
    position: relative;
    flex: 0 0 auto;
    margin-bottom: 8px;
}

.service-input {
    position: absolute;
    opacity: 0;
}

.service-label {
    display: inline-block;
    padding: 10px 16px;
    background: #f9f9f9;
    border: 2px solid #0097b2;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    min-width: 120px;
    white-space: nowrap;
}

.service-label:hover {
    border-color: #0098b2;
    background: #f0f9fa;
}

.service-input:checked + .service-label {
        background: rgb(0 151 178);
    border-color: #0097b2;
    color: #ffffff;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(228, 2, 43, 0.15);
}

.service-input:focus + .service-label {
    box-shadow: 0 0 0 2px rgba(228, 2, 43, 0.3);
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #212624;
    font-weight: 500;
    font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: border 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #0098b2;
    outline: none;
}

textarea {
    min-height: 80px;
    resize: vertical;
    font-size: 14px;
}

/* Phone Input with Indian Flag */
.phone-input-container {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-prefix img {
    width: 20px;
    height: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

#phone {
    padding-left: 60px;
}

/* Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.btn-prev {
    background: #f5f5f5;
    color: #212624;
}

.btn-prev:hover {
    background: #e0e0e0;
}

.btn-next, .btn-submit {
    background: #e4022b;
    color: white;
}

.btn-next:hover, .btn-submit:hover {
    background: #c00224;
    transform: translateY(-1px);
}

.btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Child Selection Popup */
.child-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.child-popup-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.child-popup-content h3 {
    color: #212624;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
}

.child-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.child-option {
    position: relative;
}

.child-service-input {
    position: absolute;
    opacity: 0;
}

.child-service-label {
    display: block;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 2px solid #0097b2;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
}

.child-service-label:hover {
    border-color: #0098b2;
    background: #f0f9fa;
}

.child-service-input:checked + .child-service-label {
    background: #0097b2;
    border-color: #e4022b;
    color: #ffffff;
    font-weight: 600;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.popup-cancel, .popup-confirm {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.popup-cancel {
    background: #f5f5f5;
    color: #212624;
}

.popup-cancel:hover {
    background: #e0e0e0;
}

.popup-confirm {
    background: #e4022b;
    color: white;
}

.popup-confirm:hover:not(:disabled) {
    background: #c00224;
}

.popup-confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Message Popup */
.message-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.message-popup-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.message-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.message-popup-content h3 {
    color: #212624;
    margin-bottom: 15px;
    font-size: 18px;
}

.message-popup-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.message-ok-btn {
    background: #e4022b;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.message-ok-btn:hover {
    background: #c00224;
}

/* Success Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    margin: 10% auto;
}

.popup-icon {
    font-size: 50px;
    color: #0098b2;
    margin-bottom: 15px;
}

.popup-content h2 {
    color: #212624;
    margin-bottom: 15px;
    font-size: 18px;
}

.popup-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.visit-site-btn {
    background: #e4022b;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
}

.visit-site-btn:hover {
    background: #c00224;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 152, 178, 0.2);
    border-radius: 50%;
    border-top-color: #0098b2;
    animation: spin 1s ease-in-out infinite;
}

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

/* Hidden field to store selection */
#selectedService {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .child-options-grid {
        grid-template-columns: 1fr;
    }
    
    .child-popup-content {
        padding: 20px;
    }
    
    .service-selection {
        justify-content: center;
    }
    
    .service-label {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .popup-cancel, .popup-confirm {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .phone-prefix img {
        width: 18px;
        height: 13px;
    }
    
    #phone {
        padding-left: 55px;
    }
}

@media (max-width: 480px) {
    .service-label {
        min-width: 80px;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .service-selection {
        gap: 8px;
    }
    
    .child-service-label {
        padding: 10px 12px;
        font-size: 12px;
    }
}