/* Contact Hero Section */
.contact-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.contact-hero .hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Contact Main Section */
.contact-main {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

/* Contact Form Section */
.contact-form-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.form-header p {
    color: #6c757d;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    transition: all 0.2s ease-out;
}

.form-group textarea ~ label {
    top: 1rem;
    transform: none;
}

.form-group.focused label,
.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group select:focus ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.75rem;
    background-color: white;
    padding: 0 0.3rem;
    color: var(--primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    margin-top: 1rem;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #3d8b40;
}

.submit-btn:disabled {
    background-color: #a5d6a7;
    cursor: not-allowed;
}

/* Form message styles */
.form-messages {
    margin: 15px 0;
    padding: 0;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
    animation: fadeIn 0.3s ease-in-out;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 4px solid #dc3545;
    animation: fadeIn 0.3s ease-in-out;
}

.info-message {
    background-color: #cce5ff;
    color: #004085;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    animation: fadeIn 0.3s ease-in-out;
    font-size: 0.9rem;
}

.error-list {
    margin: 10px 0 0 20px;
    padding: 0;
}

.error-list li {
    margin-bottom: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Offices Section */
.offices-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

.offices-header {
    margin-bottom: 2rem;
    text-align: center;
}

.offices-header h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.offices-header p {
    color: #6c757d;
}

.offices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.office-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.office-card.primary {
    background-color: #e8f5e9;
    border-left: 4px solid var(--primary);
}

.office-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.office-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.office-icon i {
    color: white;
    font-size: 1.2rem;
}

.office-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.office-details p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    color: #555;
}

.office-details i {
    color: var(--primary);
    margin-right: 0.5rem;
    width: 20px;
}

/* Quick Contact Section */
.quick-contact {
    padding: 4rem 2rem;
    background-color: white;
}

.quick-contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .quick-contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.quick-contact-card {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: transform 0.2s;
}

.quick-contact-card:hover {
    transform: translateY(-5px);
}

.quick-contact-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.quick-contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.quick-contact-card p {
    color: #555;
    margin: 0.3rem 0;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    background-color: #333;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out forwards;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
