/* Contact Page Styles */
.contact-hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/frontend/images/logo/logo1.jpeg?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

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

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

.contact-content {
    padding: 4rem 5%;
}

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

.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-info h2 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}

.info-item i {
    font-size: 1.5rem;
    color: #007bff;
    min-width: 20px;
    margin-top: 0.2rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-item p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.social-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.social-links h3 {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.contact-form {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-form h2 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220,53,69,0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.submit-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.map-section {
    padding: 4rem 5%;
    background: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive styles for Contact page */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 3rem;
    }

    .contact-content {
        padding: 3rem 5%;
    }
}

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

    .contact-hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-hero {
        height: 250px;
    }

    .contact-content {
        padding: 2rem 5%;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .contact-hero-content p {
        font-size: 1rem;
    }

    .contact-content {
        padding: 1.5rem 3%;
    }

    .contact-info,
    .contact-form {
        padding: 1.2rem;
        border-radius: 8px;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .info-item {
        flex-direction: row;
        text-align: left;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
        padding: 0.3rem 0;
    }

    .info-item i {
        margin-bottom: 0;
        font-size: 1.4rem;
        margin-top: 0.1rem;
        flex-shrink: 0;
    }

    .info-item h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .info-item p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .social-links {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .social-links h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .social-icons {
        justify-content: flex-start;
        gap: 0.8rem;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .map-container iframe {
        height: 300px;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
        border-radius: 4px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .submit-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
        border-radius: 4px;
    }

    .map-section {
        padding: 2rem 3%;
    }

    .map-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 360px) {
    .contact-hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .contact-hero-content p {
        font-size: 0.9rem;
    }

    .contact-content {
        padding: 1rem 2%;
    }

    .contact-info,
    .contact-form {
        padding: 1rem;
        border-radius: 6px;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    .info-item {
        gap: 0.6rem;
        margin-bottom: 1.2rem;
        padding: 0.2rem 0;
    }

    .info-item i {
        font-size: 1.2rem;
    }

    .info-item h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .info-item p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .map-container iframe {
        height: 250px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

/* Additional mobile improvements */
@media (max-width: 480px) {
    /* Improve touch targets */
    .social-icons a {
        min-width: 44px;
        min-height: 44px;
    }

    /* Better spacing for form elements */
    .form-group + .form-group {
        margin-top: 1rem;
    }

    /* Improve readability */
    .info-item p {
        word-break: break-word;
    }

    /* Better button styling */
    .submit-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Improve alert messages */
    .alert {
        padding: 0.8rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Improve form inputs for mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Better spacing for contact info */
    .contact-info {
        margin-bottom: 1rem;
    }

    /* Improve map section */
    .map-section {
        margin-top: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .contact-hero-content h1 {
        font-size: 1.6rem;
    }

    .contact-hero-content p {
        font-size: 0.85rem;
    }

    .contact-info,
    .contact-form {
        padding: 0.8rem;
    }

    .info-item {
        gap: 0.5rem;
    }

    .info-item i {
        font-size: 1.1rem;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}

/* reCAPTCHA Styles */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.g-recaptcha > div {
    transform: scale(1);
    transform-origin: 0 0;
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}

@media (max-width: 360px) {
    .g-recaptcha {
        transform: scale(0.8);
        transform-origin: 0 0;
    }
}
