/* --- CONTACT PAGE STYLES --- */

:root {
    --primary-blue: #007bff;
    --primary-blue-dark: #0056b3;
    --text-dark: #1d1d1f;
    --text-light: #6e6e73;
    --bg-offwhite: #f5f5f7;
}

/* 1. Hero / Map Placeholder */
.contact-hero {
    height: 350px;
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.contact-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 2. Main Layout */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-offwhite);
    margin-top: -80px;
    /* Pull up over hero */
    position: relative;
    z-index: 10;
}

.contact-card-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    display: flex;
    overflow: hidden;
    min-height: 550px;
}

/* LEFT SIDE (Dark) */
.contact-info-side {
    flex: 4;
    /* 40% width */
    background-color: var(--text-dark);
    color: white;
    padding: 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-side h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.info-intro {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-items-container {
    flex-grow: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
}

.icon-box {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.icon-box i {
    color: var(--primary-blue);
    width: 20px;
    height: 20px;
}

.info-item strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a i {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    background-color: var(--bg-offwhite);
    transform: translateY(-3px);
    color: black
}

.circle-decoration {
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    z-index: 1;
}

.circle-decoration-small {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    z-index: 1;
}

/* RIGHT SIDE (Form) */
.contact-form-side {
    flex: 6;
    /* 60% width */
    padding: 60px 50px;
    background: white;
}

/* 3. COOL FORM STYLES (Floating Labels) */
.cool-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 5px;
    width: 100%;
}

/* The Input Field */
.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-dark);
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
    font-family: inherit;
    resize: none;
    border-radius: 0;
    /* Remove iOS roundness */
}

/* Remove default arrow from select to replace it */
.input-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 0;
    top: 15px;
    width: 20px;
    height: 20px;
    color: #999;
    pointer-events: none;
}

/* The Label */
.input-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 16px;
    color: #888;
    pointer-events: none;
    transition: 0.3s ease all;
}

/* Focus Border Animation */
.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* Animations when Input is Focused or has Value */
.input-group input:focus~.focus-border,
.input-group textarea:focus~.focus-border,
.input-group select:focus~.focus-border {
    width: 100%;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label,
.input-group select:focus~label,
.input-group select:valid~label {
    top: -10px;
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Button Styling (UPDATED to Blue) */
.btn-send {
    margin-top: 20px;
    padding: 15px 35px;
    background-color: var(--text-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-send:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Alerts */
.alert-box {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.alert-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 4. FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.faq-item h3 i {
    color: var(--primary-blue);
    width: 20px;
    height: 20px;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-card-wrapper {
        flex-direction: column;
    }

    .contact-info-side {
        padding: 40px;
        flex: none;
    }

    .contact-form-side {
        padding: 40px;
        flex: none;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }
}