/* =========================================================================
 * Stiluri pentru formularul de rezervare
 * ========================================================================= */

/* Container principal */
.affc-booking-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

.affc-booking-header h2 {
    font-size: 32px;
    color: #1a365d;
    margin-bottom: 10px;
}

.affc-booking-header p {
    font-size: 16px;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Pași formular */
.affc-form-step {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.affc-form-step h3 {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #4299e1;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
}

/* Grid psihologi */
.affc-psychologists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.affc-psychologist-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.affc-psychologist-card:hover {
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.15);
}

.affc-psychologist-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.affc-psychologist-card input[type="radio"]:checked + .affc-psychologist-info {
    border-color: #4299e1;
    background: #ebf8ff;
}

.affc-psychologist-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.affc-psychologist-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.affc-psychologist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.affc-psychologist-details h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 18px;
}

.affc-psychologist-bio {
    margin: 0;
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}

/* Tipuri sesiuni */
.affc-session-types-container {
    margin: 20px 0;
}

.affc-session-type-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.affc-session-type-card:hover {
    border-color: #48bb78;
    transform: translateX(5px);
}

.affc-session-type-card.selected {
    border-color: #48bb78;
    background: #f0fff4;
}

.affc-session-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.affc-session-type-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.affc-session-type-duration {
    background: #c6f6d5;
    color: #22543d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.affc-session-type-description {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Câmpuri formular */
.affc-form-fields {
    margin: 25px 0;
}

.affc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .affc-form-row {
        grid-template-columns: 1fr;
    }
}

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

.affc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.affc-form-group input[type="text"],
.affc-form-group input[type="email"],
.affc-form-group input[type="tel"],
.affc-form-group input[type="date"],
.affc-form-group textarea,
.affc-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.affc-form-group input:focus,
.affc-form-group textarea:focus,
.affc-form-group select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.affc-field-hint {
    display: block;
    margin-top: 5px;
    color: #a0aec0;
    font-size: 13px;
}

/* Selectare data și ora */
.affc-datetime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0;
}

@media (max-width: 768px) {
    .affc-datetime-container {
        grid-template-columns: 1fr;
    }
}

.affc-time-selection {
    margin-top: 25px;
}

.affc-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.affc-time-slot {
    padding: 12px 5px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.affc-time-slot:hover {
    border-color: #4299e1;
    background: #ebf8ff;
}

.affc-time-slot.selected {
    border-color: #48bb78;
    background: #f0fff4;
    color: #22543d;
    font-weight: 600;
}

.affc-time-slot.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f7fafc;
    text-decoration: line-through;
}

/* Navigație între pași */
.affc-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.affc-prev-btn,
.affc-next-btn,
.affc-submit-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.affc-prev-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.affc-prev-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.affc-next-btn {
    background: #4299e1;
    color: white;
}

.affc-next-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.affc-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.affc-submit-btn {
    background: #48bb78;
    color: white;
}

.affc-submit-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* Mesaje */
.affc-selected-text {
    background: #ebf8ff;
    border-left: 4px solid #4299e1;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
    color: #2d3748;
    font-size: 15px;
}

.affc-form-message {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.affc-form-message.success {
    background: #f0fff4;
    color: #22543d;
    border: 2px solid #9ae6b4;
}

.affc-form-message.error {
    background: #fff5f5;
    color: #c53030;
    border: 2px solid #fc8181;
}

.affc-form-message.info {
    background: #ebf8ff;
    color: #2c5282;
    border: 2px solid #90cdf4;
}

/* Loading */
.affc-loading {
    text-align: center;
    padding: 30px;
    color: #718096;
    font-style: italic;
}

.affc-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #e2e8f0;
    border-top-color: #4299e1;
    border-radius: 50%;
    animation: affc-spin 1s linear infinite;
    vertical-align: middle;
}

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

/* Info text */
.affc-info-text {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    color: #718096;
    font-size: 14px;
    border-left: 4px solid #cbd5e0;
}

.affc-date-note {
    margin-top: 20px;
    padding: 15px;
    background: #fffaf0;
    border-radius: 8px;
    border-left: 4px solid #ed8936;
}

.affc-date-note p {
    margin: 0;
    color: #744210;
    font-size: 14px;
}
/* =========================================================================
 * CORECȚII FORMULAR – fundal #f7fafc constant și text negru
 * ========================================================================= */

/* Toate câmpurile de input, select, textarea – fundal gri deschis, text negru */
.affc-form-group input,
.affc-form-group select,
.affc-form-group textarea,
#session_date,
#session_time_select {
    background-color: #f7fafc !important;
    color: #000000 !important;
    border: 2px solid #e2e8f0 !important;
}

/* La focus să nu devină albastru */
.affc-form-group input:focus,
.affc-form-group select:focus,
.affc-form-group textarea:focus,
#session_date:focus,
#session_time_select:focus {
    background-color: #f7fafc !important;
    border-color: #4299e1 !important;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2) !important;
}

/* Text negru pentru toate elementele de la pasul 4 */
#step-4,
#step-4 label,
#step-4 p,
#step-4 span,
#step-4 .affc-selected-text,
#step-4 .affc-info-text {
    color: #000000 !important;
}

/* Dropdown-ul pentru ore – stilizare similară */
#session_time_select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 8px;
}
/* Responsive */
@media (max-width: 768px) {
    .affc-form-step {
        padding: 20px;
    }
    
    .affc-psychologists-grid {
        grid-template-columns: 1fr;
    }
    
    .affc-form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .affc-prev-btn,
    .affc-next-btn,
    .affc-submit-btn {
        width: 100%;
        text-align: center;
    }
}