/* Trial Booking Frontend Styles */

.iftb-booking-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.iftb-booking-step {
    display: none;
}

.iftb-booking-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.iftb-booking-step h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 24px;
}

.iftb-tutor-selected {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.iftb-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.iftb-badge-instant {
    background: #51cf66;
    color: white;
}

.iftb-badge-pending {
    background: #ffc107;
    color: #333;
}

.iftb-select,
.iftb-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.iftb-select:focus,
.iftb-input:focus {
    outline: none;
    border-color: #667eea;
}

.iftb-lesson-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.iftb-lesson-type-card {
    position: relative;
    cursor: pointer;
}

.iftb-lesson-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.iftb-lesson-type-card .iftb-card-content {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.iftb-lesson-type-card input[type="radio"]:checked + .iftb-card-content {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.iftb-card-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.iftb-card-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.iftb-card-desc {
    font-size: 13px;
    opacity: 0.8;
}

#iftb-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.iftb-time-slot {
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.iftb-time-slot:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.iftb-time-slot.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.iftb-time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
}

.iftb-form-group {
    margin-bottom: 20px;
}

.iftb-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.iftb-summary-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.iftb-summary-box .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.iftb-summary-box .summary-total {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    padding-top: 15px;
}

.iftb-stripe-element {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

#iftb-card-errors {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
}

.iftb-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.iftb-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.iftb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.iftb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.iftb-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.iftb-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.iftb-btn-success {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
}

.iftb-result-success {
    padding: 30px;
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 12px;
    text-align: center;
}

.iftb-result-success h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.iftb-result-error {
    padding: 30px;
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 12px;
    text-align: center;
}

.iftb-result-error h2 {
    color: #dc3545;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .iftb-booking-wrapper {
        padding: 20px;
    }
    
    .iftb-lesson-types {
        grid-template-columns: 1fr;
    }
    
    .iftb-form-actions {
        flex-direction: column;
    }
}
