/* Contact Hero */
.contact-hero {
    background-color: #333; /* Fallback */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/0.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-top: 0; /* Header height is handled by body padding-top in main.css */
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info, .contact-form-container {
    flex: 1 1 400px;
}

.contact-info h2, .contact-form-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.contact-info > p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

/* Contact Items Grid */
.contact-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    margin-bottom: 0;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.info-item .icon {
    font-size: 36px;
    margin-bottom: 20px;
    color: #0b65d4;
    display: inline-block;
    background: #e6f0fa;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
}

.info-item .details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.info-item .details p {
    color: #666;
    font-size: 1rem;
    word-break: break-all; /* Prevent long emails from breaking layout */
}

.social-links {
    margin-top: 40px;
}

.social-links h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.social-links .links a {
    display: inline-block;
    margin-right: 15px;
    padding: 8px 15px;
    background-color: #f2f2f2;
    border-radius: 4px;
    transition: 0.3s;
}

.social-links .links a:hover {
    background-color: #0b65d4;
    color: white;
}

/* Contact Form */
.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    padding: 12px 30px;
    background-color: #0b65d4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #084aad;
}

/* Custom File Input Style */
.form-group .inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
    padding: 0;
    margin: 0;
    border: none;
}

.inputfile + label {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    background-color: #f9f9f9;
    border: 2px dashed #ccc;
    display: inline-block;
    width: 100%;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inputfile:focus + label,
.inputfile + label:hover {
    background-color: #f0f8ff;
    border-color: #0b65d4;
    color: #0b65d4;
}

.inputfile + label .file-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    vertical-align: middle;
}

.inputfile + label .file-label {
    vertical-align: middle;
}

.file-info {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    text-align: right;
}

/* Loading Animation for Button */
.submit-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 150px; /* Prevent width change */
}

.submit-btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

.submit-btn.loading .btn-text {
    opacity: 0.8;
}

.submit-btn.loading .btn-loader {
    display: block;
}

.submit-btn.loading {
    cursor: not-allowed;
    background-color: #7aa5dd; /* Lighter blue */
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Map Section */
.map-section {
    margin-top: 0;
    line-height: 0; /* Remove extra space below iframe */
}

/* Responsive */
@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        gap: 30px;
    }
}
