/**
 * Cleaning Booking Form Styles
 * 
 * Styles for the public-facing solar cleaning booking form.
 * 
 * @package Krtrim_Solar_Core
 * @since 1.1.0
 */

/* Main Container */
.ksc-booking-container {
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    font-family: 'Segoe UI', sans-serif;
}

/* Header */
.ksc-booking-header {
    text-align: center;
    margin-bottom: 30px;
}

.ksc-booking-header h2 {
    color: #f39c12;
    margin-bottom: 5px;
}

/* Steps Indicator */
.ksc-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.ksc-steps-indicator::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #eee;
    z-index: 0;
}

.ksc-booking-container .step {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    border: 2px solid #eee;
    width: 30%;
    text-align: center;
}

.ksc-booking-container .step.active {
    border-color: #f39c12;
    color: #f39c12;
    background: #fffbe6;
}

/* Form Steps */
.ksc-booking-container .form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ksc-booking-container .form-step.active {
    display: block;
}

/* Form Groups */
.ksc-booking-container .form-group {
    margin-bottom: 20px;
}

.ksc-booking-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.ksc-booking-container .form-group input,
.ksc-booking-container .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.plan-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    border-color: #f39c12;
}

.plan-card input {
    position: absolute;
    opacity: 0;
}

.plan-card input:checked+.plan-content {
    color: #f39c12;
}

.plan-card input:checked~.plan-content .plan-title {
    font-weight: bold;
}

.plan-card:has(input:checked) {
    border-color: #f39c12;
    background: #fffaf0;
}

.plan-title {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.plan-desc {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Price Summary */
.ksc-booking-container .price-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #555;
}

.price-row.total {
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-bottom: 0;
}

/* Buttons */
.ksc-booking-container .button-group {
    display: flex;
    gap: 10px;
}

.ksc-booking-container .btn-next,
.ksc-booking-container .btn-back {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

.ksc-booking-container .btn-next {
    background: #f39c12;
    color: white;
}

.ksc-booking-container .btn-next:hover {
    background: #e67e22;
}

.ksc-booking-container .btn-back {
    background: #f1f1f1;
    color: #333;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Razorpay iframe fix */
.razorpay-checkout-frame {
    z-index: 99999 !important;
}

/* Payment Options */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.payment-card:hover {
    border-color: #f39c12;
}

.payment-card input {
    display: none;
}

.payment-card:has(input:checked) {
    border-color: #f39c12;
    background: #fffaf0;
}

.payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.payment-content .title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

.payment-content .desc {
    font-size: 12px;
    color: #666;
    display: block;
}