/* ── RESET BOX MODEL ── */
*, *::before, *::after {
    box-sizing: border-box;
}

/* SECTION */
.contact-section {
    padding: 80px 6%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    width: 100%;
    overflow-x: hidden;
}

/* HEADER */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 10px;
}

.contact-header h2 {
    font-size: clamp(26px, 4vw, 40px);
    margin-bottom: 10px;
}

.contact-header p {
    opacity: 0.7;
    font-size: 16px;
}

/* GRID — mobile-first: single column always */
.contact-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: 100%;
}

/* Two columns on tablet and up */
@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 40px;
    }
}

/* GLASS CARD */
.contact-info,
.contact-form {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
    box-sizing: border-box;
}

/* INFO CARD */
.info-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 25px;
}

.info-card i {
    font-size: 20px;
    color: #3b82f6;
    margin-bottom: 4px;
}

.info-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-card p {
    font-size: 14px;
    opacity: 0.8;
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* Fallback .info-item */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 20px;
    color: #3b82f6;
    min-width: 25px;
}

.info-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 14px;
    opacity: 0.8;
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* MAP */
.map-wrapper {
    width: 100%;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 12px;
    margin-top: 20px;
    display: block;
}

/* DIRECTIONS BUTTON */
.directions-btn {
    display: inline-block;
    margin: 10px 0 20px;
    padding: 10px 20px;
    background: #3b82f6;
    border-radius: 30px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: 0.3s ease;
}

.directions-btn:hover {
    background: #2563eb;
}

/* FORM */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.form-group label {
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 14px;
    opacity: 0.6;
    pointer-events: none;
    transition: 0.3s ease;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: #0f172a;
    padding: 0 5px;
    opacity: 1;
}

/* SEND BUTTON */
.send-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.03);
}

/* ========================= */
/* RESPONSIVE BREAKPOINTS    */
/* ========================= */

@media (max-width: 992px) {
    .contact-info,
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 4%;
    }

    .contact-header h2 {
        font-size: clamp(22px, 6vw, 32px);
    }

    .contact-container {
        gap: 20px;
    }

    .info-card p,
    .info-item p {
        font-size: 13px;
        word-break: break-all;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 50px 4%;
    }

    .contact-header h2 {
        font-size: 22px;
    }

    .contact-info,
    .contact-form {
        padding: 20px;
    }

    .info-item {
        flex-direction: column;
        gap: 8px;
    }

    .map-wrapper iframe {
        height: 180px;
    }

    .directions-btn {
        display: block;
        text-align: center;
    }
}

/* Very small screens (≤ 400px) */
@media (max-width: 400px) {
    .contact-section {
        padding: 40px 3%;
    }

    .contact-info,
    .contact-form {
        padding: 16px;
        border-radius: 14px;
    }

    .info-card h4 {
        font-size: 15px;
    }

    .info-card p {
        font-size: 12px;
    }
}

footer {
    margin-top: 0 !important;
}