/* File: essayWebsite/public/css/components.css */
.consultation-overview {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.consultation-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: var(--text-charcoal);
    text-align: center;
}

.process-benefits,
.candidate-profile,
.process-steps {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px var(--shadow-light);
    contain: layout style;
}

.process-benefits h3,
.candidate-profile h3,
.process-steps h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    text-align: center;
}

.benefits-list,
.profile-requirements {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.benefits-list li,
.profile-requirements li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.125rem;
    color: var(--text-charcoal);
    line-height: 1.6;
}

.benefits-list li::before,
.profile-requirements li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 1rem;
    top: 0.75rem;
}

.benefits-list li:last-child,
.profile-requirements li:last-child {
    border-bottom: none;
}

.profile-note {
    font-style: italic;
    color: var(--text-light);
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: var(--secondary-cream);
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
    font-size: 1rem;
    line-height: 1.6;
}

.process-steps-section {
    margin: 3rem 0;
    padding: 4rem 3rem;
    background-color: #FAF8F5;
    border-radius: 12px;
    contain: layout style;
}

.process-columns {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.process-left-column h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    font-weight: 700;
}

.process-steps-visual {
    position: relative;
    padding-left: 1rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.process-step:not(:last-child)::after,
.diagnostic-step:not(:last-child)::after,
.executive-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: calc(1rem + 30px);
    top: 60px;
    width: 1px;
    height: calc(100% - 35px);
    background: linear-gradient(to bottom, #2F4F2F, rgba(47, 79, 47, 0.3));
    z-index: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: #2F4F2F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(47, 79, 47, 0.2);
    position: relative;
    z-index: 2;
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    max-width: 28px;
    max-height: 28px;
    flex-shrink: 0;
    -webkit-transform: translateZ(0); /* Safari GPU acceleration fix */
}

.step-content h4 {
    font-size: 1.125rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.process-right-column {
    padding: 3rem 2rem 0 0;
}

.process-details p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-charcoal);
    margin-bottom: 1.75rem;
    text-align: left;
}

.process-details p:last-child {
    margin-bottom: 0;
}

.process-details strong {
    color: var(--primary-green);
    font-weight: 600;
}

.intro-top {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.ennis-photo {
    width: 300px;
    height: 300px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.intro-text-wrapper {
    flex: 1;
}

.parent-note-wrapper {
    flex: 1;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 968px) {
    .process-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-right-column {
        padding-top: 0;
    }
    
    .process-steps-section {
        padding: 3rem 2rem;
    }
    
    .intro-top {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .credentials {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

@media (max-width: 480px) {
    .process-steps-section {
        padding: 2rem 1rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .process-connector {
        left: calc(1rem + 25px);
    }
}

.form-header {
    text-align: center;
    margin: 3rem auto 2rem;
    max-width: 600px;
}

.form-header h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
}

.form-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
}

.consultation-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 40px var(--shadow-luxury);
    border: 1px solid var(--border-light);
    contain: layout style;
}

.consultation-form.compact {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.form-section.compact {
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

.consultation-form.compact .form-group {
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-charcoal);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--white);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    background-color: var(--secondary-cream);
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.submit-button {
    width: 100%;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.submit-button:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.3);
}

.submit-button:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.form-response-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

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

/* Essay Diagnostic and Executive Review Process Styling */
.process-details-section {
    margin: 3rem 0;
    padding: 4rem 3rem;
    background-color: #FAF8F5;
    border-radius: 12px;
    contain: layout style;
}

.process-details-section h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    font-weight: 700;
    text-align: center;
}

.diagnostic-process,
.executive-process {
    position: relative;
    padding-left: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.diagnostic-step,
.executive-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.diagnostic-step::before,
.executive-step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    width: 60px;
    height: 60px;
    background-color: #2F4F2F;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(47, 79, 47, 0.2);
    position: relative;
    z-index: 2;
}

.diagnostic-process {
    counter-reset: step-counter;
}

.executive-process {
    counter-reset: step-counter;
}

/* Responsive adjustments for process sections */
@media (max-width: 768px) {
    .process-details-section {
        padding: 2rem 1.5rem;
    }
    
    .diagnostic-step,
    .executive-step {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .diagnostic-step::before,
    .executive-step::before {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .diagnostic-step:not(:last-child)::after,
    .executive-step:not(:last-child)::after {
        left: calc(1rem + 25px);
    }
}

@media (max-width: 480px) {
    .process-details-section {
        padding: 1.5rem 1rem;
    }
    
    .diagnostic-process,
    .executive-process {
        padding-left: 0.5rem;
    }
    
    .diagnostic-step,
    .executive-step {
        gap: 1rem;
    }
    
    .diagnostic-step::before,
    .executive-step::before {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .diagnostic-step:not(:last-child)::after,
    .executive-step:not(:last-child)::after {
        left: calc(0.5rem + 22.5px);
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.modal-content p {
    margin-bottom: 2rem;
}

.modal-close {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: var(--accent-gold);
}

.timeline-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    text-align: center;

}