/**
 * Contact Form Styles
 * Clean UI Design with Roboto Font
 */

/* Import Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* Universal Border Box */
.contact-form-container *,
.contact-form-container *::before,
.contact-form-container *::after {
    box-sizing: border-box;
}

/* Main Container */
.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 60px;
    background: #ffffff;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* Left Section - Form */
.contact-form-left {
    padding-right: 30px;
}

.contact-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 6px;
    font-family: 'Roboto', sans-serif;
}

/* Name Fields */
.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Input Styles */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #000000;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form input[type="tel"]:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: #bdbdbd;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 1px #333333;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #bdbdbd;
    font-family: 'Roboto', sans-serif;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px 32px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    font-family: 'Roboto', sans-serif;
}

.submit-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.submit-btn:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Response Messages */
.form-response {
    padding: 14px 18px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.form-response.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.form-response.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.form-response i {
    font-size: 18px;
}

/* Right Section - Contact Info */
.contact-form-right {
    padding-left: 30px;
}

.contact-info-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif;
}

/* Contact Info Items */
.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    align-items: start;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(2px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 2px;
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-icon i {
    color: #ffffff;
    font-size: 18px;
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-details h3 {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 6px 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
}

.contact-details p {
    font-size: 13px;
    color: #616161;
    line-height: 1.6;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    word-wrap: break-word;
}

/* Interactive Map Section */
.interactive-map {
    margin-top: 40px;
}

.interactive-map h3 {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 14px;
    font-family: 'Roboto', sans-serif;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.map-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #bdbdbd;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 40px 30px;
    }
    
    .contact-form-left,
    .contact-form-right {
        padding: 0;
    }
    
    .contact-form-right {
        border-top: 1px solid #e0e0e0;
        padding-top: 60px;
    }
}

@media (max-width: 640px) {
    .contact-form-title,
    .contact-info-title {
        font-size: 24px;
    }
    
    .name-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
        gap: 50px;
    }
    
    .contact-info-item {
        gap: 14px;
    }
    
    .contact-icon {
        width: 36px;
        height: 36px;
    }
    
    .contact-icon i {
        font-size: 16px;
    }
    
    .map-container {
        border-radius: 6px;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .submit-btn {
        padding: 13px 24px;
        font-size: 14px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-response {
    animation: fadeIn 0.3s ease;
}

/* Loading State */
.submit-btn:disabled::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus Styles for Accessibility */
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid #333333;
    outline-offset: 2px;
}
