/* youTHrive Malta - Contact Page Stylesheet */

/* Hero section */
.contact-hero {
    background: linear-gradient(rgba(5, 116, 220, 0.8), rgba(252, 133, 31, 0.7)), url('../../images/backgrounds/hero-background.jpg'), var(--science-blue);
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0;
    padding-top: 80px;
    color: white;
    text-align: center;
    overflow: hidden;
}

.contact-hero-content {
    max-width: 800px;
    padding: 40px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    margin: 0 auto;
    animation: fadeIn 1s ease-in-out;
    position: relative;
    z-index: 5;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero p {
    font-size: 1.4rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Section Titles */
.section-title {
    text-align: left;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--science-blue);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--ecstasy);
    margin: 15px 0 25px 0;
    border-radius: 2px;
}

/* Contact Form */
.contact-form-container {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--science-blue);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--science-blue);
    box-shadow: 0 0 0 3px rgba(5, 116, 220, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 116, 220, 0.3);
}

/* Contact Information */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--science-blue);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-card:nth-child(2) {
    border-left-color: var(--ecstasy);
}

.contact-card:nth-child(3) {
    border-left-color: var(--picton-blue);
}

.contact-card:nth-child(4) {
    border-left-color: var(--atomic-tangerine);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--geyser);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--science-blue);
    flex-shrink: 0;
}

.contact-card:nth-child(2) .contact-icon {
    color: var(--ecstasy);
}

.contact-card:nth-child(3) .contact-icon {
    color: var(--picton-blue);
}

.contact-card:nth-child(4) .contact-icon {
    color: var(--atomic-tangerine);
}

.contact-details h3 {
    font-size: 1.3rem;
    color: var(--science-blue);
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-details p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--science-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--ecstasy);
    text-decoration: underline;
}

.contact-text {
    color: #666;
    font-weight: 600;
}

/* Team Contact */
.team-contact {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.team-contact h3 {
    font-size: 1.5rem;
    color: var(--science-blue);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.team-members-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-member-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.team-member-contact:hover {
    background-color: var(--geyser);
    transform: translateX(5px);
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--science-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.team-member-contact:nth-child(2) .member-avatar {
    background-color: var(--ecstasy);
}

.member-info h4 {
    font-size: 1.1rem;
    color: var(--science-blue);
    margin-bottom: 2px;
    font-weight: 700;
}

.member-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.member-email {
    color: var(--science-blue);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.member-email:hover {
    color: var(--ecstasy);
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background-color: white;
}

.map-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.map-placeholder {
    background-color: var(--geyser);
    border-radius: 15px;
    padding: 80px 40px;
    text-align: center;
    border: 2px dashed #ccc;
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    border-color: var(--science-blue);
    background-color: rgba(5, 116, 220, 0.05);
}

.map-content i {
    font-size: 4rem;
    color: var(--science-blue);
    margin-bottom: 20px;
}

.map-content h3 {
    font-size: 1.8rem;
    color: var(--science-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.map-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--science-blue) 0%, var(--picton-blue) 100%);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(150px, -150px);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-buttons .btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    margin: 0 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-container {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero p {
        font-size: 1.1rem;
    }
    
    .contact-hero-content {
        padding: 30px 20px;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-form-container,
    .team-contact {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .team-member-contact {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        margin: 0;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .map-placeholder {
        padding: 60px 20px;
    }
    
    .map-content i {
        font-size: 3rem;
    }
    
    .contact-form-container,
    .team-contact {
        padding: 20px;
    }
}