/* Page-specific styles for Contact Page */
/* Inherits global styles from assets/style.css */

.page-header {
    position: relative;
    height: 35vh;
    min-height: 250px;
    background: linear-gradient(rgba(26, 62, 47, 0.75), rgba(26, 62, 47, 0.9)), url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&w=1600&q=80') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 8rem;
    padding-top: 90px; /* offset navbar */
}

.page-header-content h1 {
    font-size: 4.5rem;
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-custom {
    font-size: 1.6rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-custom a {
    color: var(--accent);
    transition: var(--transition-smooth);
}

.breadcrumb-custom a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Contact Grid Layout */
.contact-section-container {
    padding-bottom: 8rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

/* Form Styling */
.contact-form-card {
    background-color: var(--white);
    border: 1px solid rgba(26, 62, 47, 0.08);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
}

@media (max-width: 576px) {
    .contact-form-card {
        padding: 3rem 2rem;
    }
}

.contact-form-card h2 {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Floating Labels Styling */
.form-floating-custom {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-control-custom {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.2rem;
    padding: 1.6rem 1.6rem 0.6rem;
    border: 1px solid rgba(26, 62, 47, 0.15);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--text-dark);
    transition: var(--transition-smooth);
    min-height: 4rem;
}

.form-control-custom:focus {
    border-color: var(--accent);
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 158, 48, 0.15);
}

.form-floating-custom label {
    position: absolute;
    top: 50%;
    left: 1.6rem;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left top;
}

/* Float label up when input is focused or not empty */
/* Requires input placeholder=" " in HTML to work with :not(:placeholder-shown) */
.form-control-custom:focus ~ label,
.form-control-custom:not(:placeholder-shown) ~ label,
select.form-control-custom ~ label {
    top: 0.6rem;
    transform: translateY(0) scale(0.85);
    color: var(--primary);
    font-weight: 600;
}

/* Adjust textarea for floating label */
textarea.form-control-custom {
    padding-top: 1.8rem;
    min-height: 120px;
}

.form-floating-custom textarea.form-control-custom ~ label {
    top: 1.2rem;
    transform: translateY(0);
}

.form-floating-custom textarea.form-control-custom:focus ~ label,
.form-floating-custom textarea.form-control-custom:not(:placeholder-shown) ~ label {
    top: 0.6rem;
    transform: translateY(0) scale(0.85);
}

select.form-control-custom {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A3E2F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.5rem;
    padding-right: 4.5rem;
    padding-top: 1.6rem;
    padding-bottom: 0.6rem;
}

.form-btn-submit {
    display: inline-block;
    width: 100%;
    padding: 1.5rem 3rem;
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.form-btn-submit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.form-btn-submit:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-btn-submit:hover::before {
    left: 100%;
}

/* Contact Cards (Sidebar) */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info-card {
    background-color: var(--white);
    border: 1px solid rgba(26, 62, 47, 0.06);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 2rem;
    transition: var(--transition-smooth);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(226, 158, 48, 0.15);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-ultra-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2.2rem;
    flex-shrink: 0;
}

.info-card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.info-card-content p, .info-card-content a {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.info-card-content a {
    display: block;
    transition: var(--transition-smooth);
}

.info-card-content a:hover {
    color: var(--accent);
}

/* Map Container */
.map-container {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26, 62, 47, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Entrance Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-left {
    opacity: 0;
    animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-right {
    opacity: 0;
    animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }