/* =================================================================
   Contact Page Stylesheet (contact.css)
   - Aligned with site palette: black + brand green
   ================================================================= */

:root {
    --abcl-black: #0f172a;
    --abcl-green: #4ade80;
    --abcl-green-soft: #d4f0d4;
}

/* --- Hero Section — animated tech background --- */
.contact-hero {
    position: relative;
    height: 40vh;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #020617 0%, #0a0f1c 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: contact-bg-shift 18s ease-in-out infinite;
    padding: 2rem 0;
    overflow: hidden;
}
@keyframes contact-bg-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 222, 128, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 222, 128, 0.08) 1px, transparent 1px);
    background-size: 44px 44px, 44px 44px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
    .contact-hero { animation: none; }
}


/* --- Contact Section --- */
.contact-section {
    padding: 5rem 0;
    background-color: var(--off-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.07);
}

@media(min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
        padding: 4rem;
    }
}

/* --- Contact Info (Left Side) --- */
.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.info-item i {
    font-size: 1rem;
    color: var(--abcl-green);
    background: var(--abcl-black);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-item a, .info-item span {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.info-item a:hover {
    color: var(--abcl-black);
    text-decoration: underline;
    text-decoration-color: var(--abcl-green);
    text-underline-offset: 3px;
}

.social-links {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #555;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--abcl-black);
    color: var(--abcl-green);
    transform: translateY(-3px);
}


/* --- Contact Form (Right Side) --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--abcl-black);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}

.submit-button {
    background-color: var(--abcl-black);
    color: var(--abcl-green);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--abcl-black);
    cursor: pointer;
    font-size: 1rem;
}

.submit-button:hover {
    background-color: var(--abcl-green);
    color: var(--abcl-black);
    transform: translateY(-3px);
}

/* MODIFICATION: Added styles for the form status message */
#form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none; /* Hidden by default */
}

#form-status.success {
    background-color: #e9f7ec; /* A light green */
    color: #2b8a3e; /* A dark green */
    display: block;
}

#form-status.error {
    background-color: #f8d7da; /* A light red */
    color: #721c24; /* A dark red */
    display: block;
}


/* --- Map Section --- */
.map-section {
    /* No padding needed, iframe takes full width */
    line-height: 0; /* Removes any whitespace below the iframe */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .contact-wrapper { padding: 2rem; }
}