/* Consultation Request Form Styles */

#sbs-consultation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.5);
}

.sbs-consultation-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.sbs-consultation-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100000;
    animation: slideInConsultation 0.3s ease-out;
}

@keyframes slideInConsultation {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.sbs-consultation-header {
    padding: 20px;
    background: #000;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sbs-consultation-header h2 {
    margin: 0;
    font-size: 24px;
}

.sbs-consultation-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.sbs-consultation-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Progress Bar */
.sbs-consultation-progress {
    padding: 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.sbs-consultation-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sbs-consultation-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.sbs-consultation-step-indicator {
    text-align: center;
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

/* Content Area */
#sbs-consultation-content {
    padding: 40px;
    min-height: 400px;
}

.sbs-consultation-step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sbs-consultation-step h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.step-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Package Selection */
.sbs-consultation-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.sbs-consultation-package {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.sbs-consultation-package:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.sbs-consultation-package.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.sbs-consultation-package .package-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.sbs-consultation-package h3 {
    margin: 10px 0;
    font-size: 18px;
    color: #333;
}

.sbs-consultation-package .package-description {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
}

.sbs-consultation-package .package-price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin: 15px 0 0 0;
}

/* Time Slots Grid */
#sbs-time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.sbs-consultation-time-slot {
    padding: 12px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #333;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.sbs-consultation-time-slot:hover:not(:disabled):not(.disabled) {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.sbs-consultation-time-slot:active:not(:disabled):not(.disabled) {
    transform: translateY(0);
}

.sbs-consultation-time-slot.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    font-weight: 700;
}

.sbs-consultation-time-slot.selected:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.45);
}

.sbs-consultation-time-slot.disabled,
.sbs-consultation-time-slot:disabled {
    border-color: #e5e5e5;
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.sbs-consultation-time-slot.disabled:hover,
.sbs-consultation-time-slot:disabled:hover {
    border-color: #e5e5e5;
    background: #f5f5f5;
    transform: none;
    box-shadow: none;
}

/* Form Groups */
.sbs-consultation-form-group {
    margin-bottom: 20px;
}

.sbs-consultation-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.sbs-consultation-form-group input,
.sbs-consultation-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sbs-consultation-form-group input:focus,
.sbs-consultation-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sbs-consultation-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.char-count {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* Summary */
.sbs-consultation-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.summary-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-section h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
}

.summary-section p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.summary-section strong {
    color: #333;
}

/* Selected Package Display */
.sbs-consultation-selected-package {
    padding: 12px 16px;
    background: #e8f0fe;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
    color: #333;
}

/* Actions */
.sbs-consultation-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.sbs-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.sbs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sbs-btn-primary {
    background: #000;
    color: white;
}

.sbs-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sbs-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.sbs-btn-secondary:hover:not(:disabled) {
    background: #e8e8e8;
}

.sbs-btn-cancel {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

/* Success Message */
.sbs-success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.sbs-success-message h2 {
    font-size: 28px;
    margin: 20px 0;
    color: #333;
}

.sbs-success-message p {
    font-size: 16px;
    color: #666;
    margin: 15px 0;
}

.additional-info {
    font-size: 14px !important;
    color: #999;
    margin-top: 20px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sbs-consultation-modal-content {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        bottom: 0;
        top: auto;
        transform: translate(-50%, 0);
        max-height: 90vh;
    }

    @keyframes slideInConsultation {
        from {
            opacity: 0;
            transform: translate(-50%, 100%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }

    #sbs-consultation-content {
        padding: 30px 20px;
    }

    .sbs-consultation-packages {
        grid-template-columns: 1fr;
    }

    .sbs-consultation-actions {
        flex-direction: column-reverse;
    }

    .sbs-btn {
        width: 100%;
    }

    .sbs-consultation-step h2 {
        font-size: 22px;
    }

    .step-description {
        font-size: 14px;
    }
}

/* Shortcode Button Styling */
.sbs-request-consultation {
    display: inline-block;
    padding: 12px 24px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 10px 0;
}

.sbs-request-consultation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.sbs-request-consultation:active {
    transform: translateY(0);
}
