/* Contact Page Styles */

/* --- Layout --- */
.contact-page-wrapper {
    background-color: #f8f9fa; /* Light grey background for contrast with white cards */
}

.contact-hero {
    padding-top: 6rem;
    padding-bottom: 2rem; /* Reduced bottom padding since map is next */
}

.contact-hero h1 {
    color: #002340; /* Primary Brand Color */
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: left; /* Explicitly left aligned */
}

.contact-hero .lead-text {
    color: #555;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0; /* Remove auto margins to keep left align */
    text-align: left;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem; /* Increased mobile gap */
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 3fr 2fr; /* Form wider than info */
        gap: 6rem; /* Increased desktop gap from 4rem to 6rem */
    }
}

/* --- Cards General --- */
.glass-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 35, 64, 0.05);
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 35, 64, 0.08); /* Lift effect */
}

.glass-panel h3, 
.glass-panel h4, 
.glass-panel h5 {
    color: #002340;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* --- Form --- */
.custom-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.custom-form .form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
}

.custom-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #002340;
    font-size: 0.95rem;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fcfcfc;
}

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: #0cbcdb; /* Accent Color */
    box-shadow: 0 0 0 3px rgba(12, 188, 219, 0.1);
    background-color: #fff;
}

/* Checkbox */
.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    position: relative;
    padding-left: 30px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #0cbcdb;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #0cbcdb;
    border-color: #0cbcdb;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container a {
    color: #0cbcdb;
    text-decoration: none;
}
.checkbox-container a:hover {
    text-decoration: underline;
}

/* Button */
.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Form Message */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    display: none;
    font-size: 0.95rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* --- Contact Person --- */
.person-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.person-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.person-details h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #002340;
}

.person-details .role {
    color: #0cbcdb; /* Accent */
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.person-intro {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}


/* --- Info Lists --- */
.contact-list, .hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: #444;
}

.contact-list .icon {
    color: #0cbcdb;
    font-size: 1.1rem;
    min-width: 20px;
    padding-top: 3px;
}

.contact-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-list a:hover {
    color: #0cbcdb;
}

.opening-hours {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    font-weight: 500;
    color: #002340;
}

.hours-list .time {
    color: #666;
}

/* --- Map --- */
.contact-map {
    margin-top: 1rem;
    margin-bottom: 5rem; /* Spacing between Map and Grid */
}

.contact-map-title {
    color: #002340;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.map-card-wrapper {
    width: 100%;
    height: 450px;
    border-radius: 12px; /* Smooth corners */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 35, 64, 0.08);
    background-color: #fff;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
    /* Soft grayscale effect to blend better with strict design */
    filter: grayscale(100%);
    transition: filter 0.4s ease-in-out;
}

.map-container iframe:hover {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .map-card-wrapper {
        height: 350px;
    }
    .contact-map {
        margin-bottom: 3rem;
    }

    .contact-hero {
        padding-top: 4rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .custom-form .form-group {
        min-width: 0;
        width: 100%;
    }

    .custom-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .person-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .person-avatar {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 1.6rem;
    }

    .contact-hero .lead-text {
        font-size: 1rem;
    }

    .map-card-wrapper {
        height: 260px;
    }

    .hours-list li {
        flex-direction: column;
        gap: 2px;
    }
}

/* Animations (Simple Fade In Up reused) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Loader */
.loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
