/* CSS pentru pagina de contact */

/* Contact Hero */
.contact-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.contact-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.quick-contact {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    min-width: 250px;
}

.quick-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.quick-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.quick-info a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.quick-info a:hover {
    text-decoration: underline;
}

.quick-info span {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Contact Main Content */
.contact-main {
    padding: 4rem 0;
    background: var(--white);
    display: block !important;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

/* Contact Form */
.contact-form-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block !important;
    visibility: visible !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modern Appointment Form */
.appointment-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-dark);
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Modern Form Groups */
.appointment-form .form-group {
    position: relative;
    margin-bottom: 0;
}

.appointment-form .form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.appointment-form .form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-gold);
    width: 16px;
}

.appointment-form input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.appointment-form input:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.appointment-form input::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Submit Button */
.appointment-form .submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.appointment-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.appointment-form .submit-btn i {
    font-size: 1.2rem;
}

.appointment-form .form-info {
    text-align: center;
    color: var(--text-dark);
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

.appointment-form .form-info i {
    color: var(--primary-gold);
    margin-right: 0.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group.focused label {
    color: var(--primary-navy);
}

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

.form-group select {
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    position: absolute;
    opacity: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: var(--primary-navy);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.error-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.form-actions {
    margin-top: 1rem;
    text-align: center;
}

.form-actions .btn-primary {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-note i {
    color: var(--primary-gold);
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid #e5e7eb;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-card h3 i {
    color: var(--primary-gold);
}

/* Expert Card */
.expert-card {
    text-align: center;
    background: linear-gradient(135deg, var(--light-gray), var(--white));
}

.expert-image {
    position: relative;
    margin-bottom: 1.5rem;
}

.expert-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-medium);
    margin: 0 auto;
}

.expert-badge {
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.expert-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.expert-info p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.expert-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.credential {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.credential i {
    color: var(--primary-navy);
}

/* Info Card */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-navy);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.contact-details a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.availability {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

/* Schedule Card */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.schedule-item .day {
    font-weight: 600;
    color: var(--primary-navy);
}

.schedule-item .time {
    color: var(--text-light);
    font-size: 0.875rem;
}

.schedule-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fef3c7;
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-gold);
}

.schedule-note i {
    color: var(--primary-gold);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.schedule-note p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Response Card */
.response-times {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.response-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.response-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--white);
    flex-shrink: 0;
}

.response-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.response-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Map Section */
.map-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-placeholder {
    position: relative;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.location-item:last-child {
    margin-bottom: 0;
}

.location-item i {
    color: var(--primary-gold);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.location-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.location-item p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding);
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-soft);
}

.faq-question {
    padding: 1.5rem 2rem;
    background: var(--light-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 0;
}

.faq-question i {
    color: var(--primary-gold);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    background: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem 2rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Active Navigation State */
.nav-links .active {
    color: var(--primary-navy);
    font-weight: 600;
}

.nav-links .active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-sidebar {
        order: -1;
    }
    
    .map-container {
        grid-template-columns: 1fr;
    }
    
    .map-placeholder {
        order: 2;
    }
    
    .map-info {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .quick-contact {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .quick-item {
        width: 100%;
        max-width: 350px;
    }
    
    .contact-form-section {
        padding: 2rem 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .appointment-form input {
        padding: 0.9rem 1rem;
    }
    
    .appointment-form .submit-btn {
        padding: 1rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .expert-image img {
        width: 100px;
        height: 100px;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem 1.5rem;
    }
    
    .location-details {
        text-align: center;
    }
    
    .location-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .contact-hero,
    .contact-form-section,
    .map-section,
    .faq-section {
        display: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Animation States */
.contact-form {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.contact-form.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Form Validation States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading States */
.btn-primary.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States pentru Accessibility */
.faq-question:focus,
.checkbox-label:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid var(--primary-gold);
    outline-offset: 2px;
}