/* Consultation Page Styles */
.consultation-main {
    padding: 40px 0;
    background-color: var(--light-gray);
    min-height: calc(100vh - 80px);
}

.consultation-header {
    text-align: center;
    margin-bottom: 40px;
}

.consultation-header h1 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.consultation-header p {
    color: var(--text-light);
    font-size: 18px;
}

/* Consultation Steps */
.consultation-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.consultation-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gray);
    z-index: 1;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
    background-color: var(--light-gray);
    padding: 0 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.step.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.step-text h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 16px;
}

.step-text p {
    color: var(--text-light);
    margin: 5px 0 0;
    font-size: 14px;
}

/* Step Forms */
.step-forms {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.step-form {
    display: none;
}

.step-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.radio,
.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio input,
.checkbox input {
    display: none;
}

.radio span,
.checkbox span {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    width: 100%;
    transition: var(--transition);
}

.radio span::before,
.checkbox span::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray);
    margin-right: 10px;
    transition: var(--transition);
}

.radio span::before {
    border-radius: 50%;
}

.checkbox span::before {
    border-radius: 4px;
}

.radio input:checked + span,
.checkbox input:checked + span {
    border-color: var(--primary-color);
    background-color: var(--light-primary);
}

.radio input:checked + span::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    box-shadow: inset 0 0 0 4px var(--white);
}

.checkbox input:checked + span::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--gray);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary-color);
}

.file-upload input[type="file"] {
    display: none;
}

.upload-area {
    cursor: pointer;
}

.upload-area i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.upload-area p {
    color: var(--text-color);
    margin-bottom: 5px;
}

.upload-area span {
    color: var(--text-light);
    font-size: 14px;
}

.preview-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--danger);
    transition: var(--transition);
}

.preview-item .remove-btn:hover {
    background-color: var(--danger);
    color: var(--white);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-prev,
.btn-next,
.btn-confirm {
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-prev {
    background: none;
    border: 1px solid var(--gray);
    color: var(--text-color);
}

.btn-prev:hover {
    border-color: var(--text-color);
}

.btn-next,
.btn-confirm {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
}

.btn-next:hover,
.btn-confirm:hover {
    background-color: var(--accent-color);
}

.btn-confirm:disabled {
    background-color: var(--gray);
    cursor: not-allowed;
}

/* Consultation Options */
.consultation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.consultation-card {
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.consultation-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: var(--light-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.consultation-card h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.consultation-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.consultation-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.consultation-card ul li {
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.consultation-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.card-price {
    margin-bottom: 20px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

.duration {
    color: var(--text-light);
}

.btn-select {
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-select:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Schedule Container */
.consultation-schedule {
    margin-top: 40px;
    display: none;
}

.consultation-schedule.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.schedule-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.calendar {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.time-slots {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.time-slots h4 {
    margin-bottom: 20px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 10px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.time-slot:hover {
    border-color: var(--primary-color);
    background-color: var(--light-primary);
}

.time-slot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.time-slot.disabled {
    background-color: var(--light-gray);
    border-color: var(--gray);
    color: var(--text-light);
    cursor: not-allowed;
}

.selected-slot {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--light-primary);
    border-radius: var(--border-radius);
    text-align: center;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.success-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.success-icon {
    font-size: 64px;
    color: var(--success);
    margin-bottom: 20px;
}

.modal-content h2 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.consultation-details {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-calendar,
.btn-close {
    flex: 1;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-calendar {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
}

.btn-calendar:hover {
    background-color: var(--accent-color);
}

.btn-close {
    background: none;
    border: 1px solid var(--gray);
    color: var(--text-color);
}

.btn-close:hover {
    border-color: var(--text-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .consultation-steps {
        flex-direction: column;
        gap: 20px;
    }

    .consultation-steps::before {
        display: none;
    }

    .step {
        width: 100%;
        justify-content: flex-start;
    }

    .schedule-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .step-forms {
        padding: 20px;
    }

    .radio-group,
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .consultation-cards {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-prev,
    .btn-next,
    .btn-confirm {
        width: 100%;
    }
}

.calendar .date {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, color 0.2s;
}
.calendar .date:hover:not(.disabled) {
    background: #ede9fe;
    color: #6d28d9;
    border-radius: 50%;
}
.calendar .date.selected {
    background: #a78bfa;
    color: #fff;
    border-radius: 50%;
}
.calendar .date.disabled {
    color: #ccc;
    pointer-events: none;
    cursor: not-allowed;
} 