/* Consultations Page Styles */

.consultations-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.consultations-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.consultations-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
}

.category-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    min-height: 60px;
}

/* How it Works */
.how-it-works {
    background: var(--bg-light);
    padding: 60px 0;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
    background: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 20px 0 15px;
}

.step-card h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* My Consultations CTA */
.my-consultations-cta {
    padding: 40px 0;
    text-align: center;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.required {
    color: #e74c3c;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Professional Form Styles */
.modal-large {
    max-width: 800px !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.modal-header h2 {
    margin-bottom: 0 !important;
    font-size: 1.8rem;
}

.professional-form .form-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.step-info {
    flex: 0 0 160px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
}

.step-info .step-number {
    position: static;
    transform: none;
    margin: 0 auto 10px;
    background: var(--primary-color);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.step-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.step-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.form-group.consultant-selection {
    position: relative;
}

.form-group.consultant-selection select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-right: 40px;
    padding-left: 40px;
}

.form-group.consultant-selection select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group.consultant-selection select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.form-group.consultant-selection select:hover:not(:disabled) {
    border-color: var(--accent-color);
}

.form-divider {
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-note i {
    color: var(--accent-color);
    margin-left: 5px;
}

.btn-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
}

.mini-loader {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mini-loader::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    .consultations-hero h1 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .professional-form .form-step {
        flex-direction: column;
        gap: 15px;
    }

    .step-info {
        flex: none;
        width: 100%;
        display: flex;
        align-items: center;
        text-align: right;
        gap: 15px;
    }

    .step-info .step-number {
        margin: 0;
        flex: 0 0 40px;
    }

    .form-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}