/* contact-style.css */
/* Modern Contact Page Styles */

/* Color Variables */
:root {
    /* Background Colors */
    --bg-soft-blue: #E6F2FF;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F8F9FA;
    
    /* Primary Colors */
    --primary-red: #EE6363;
    --primary-red-dark: #D54D4D;
    --primary-red-light: #F4A6A6;
    
    /* Text Colors */
    --text-dark: #2D2D2D;
    --text-medium: #666666;
    --text-light: #999999;
    
    /* Border Colors */
    --border-color: #D0D0D0;
    --border-light: #EAEAEA;
    
    /* Additional variables for form elements */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --box-shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Legacy variables for compatibility */
    --primary-color: var(--primary-red);
    --primary-dark: var(--primary-red-dark);
    --primary-light: var(--primary-red-light);
    --secondary-color: var(--bg-soft-blue);
    --accent-color: var(--bg-soft-blue);
    --light-color: var(--bg-light-gray);
    --dark-color: var(--text-dark);
    --gray-color: var(--text-medium);
    --gray-light: var(--border-light);
}

/* Base Styles */
.contact-page {
    padding: 60px 0;
    background: var(--bg-soft-blue); /* Soft blue background */
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Form Section */
.contact-form-section {
    flex: 1;
    min-width: 300px;
}

.contact-form-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    height: 100%;
    transition: var(--transition);
}

.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.contact-form-title {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    text-align: center;
    padding-bottom: 15px;
}

.contact-form-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color); /* Use darker text color for better readability */
}

.form-label.required:after {
    content: " *";
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background-color: #fff;
    color: var(--dark-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
    outline: none;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* Button Styles */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
}

.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.submit-btn:hover {
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
    transform: translateY(-3px);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Response Messages */
.form-response {
    padding: 16px;
    margin-top: 20px;
    border-radius: 8px;
    display: none;
    font-size: 15px;
}

.form-response.success {
    background: #e8f4f8; /* Light blue background */
    color: #10b981; /* Success green */
    border: 1px solid #a8dadc; /* Blue border */
    display: block;
}

.form-response.error {
    background: #ffccd5; /* Light red background */
    color: #ef4444; /* Error red */
    border: 1px solid #f08080; /* Red border */
    display: block;
}

/* Spinner Animation */
.spinner {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Info Section */
.contact-info-section {
    flex: 1;
    min-width: 300px;
}

.contact-info-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.contact-info-title {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    text-align: center;
    padding-bottom: 15px;
}

.contact-info-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Info Items */
.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.1); /* Light red background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.info-content p {
    color: var(--dark-color); /* Use darker text color for better readability */
    line-height: 1.6;
}

/* Working Hours */
.working-hours {
    margin-top: 40px;
}

.working-hours h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 30px;
    }
    
    .contact-form-title,
    .contact-info-title {
        font-size: 1.8rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .info-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .contact-page {
        padding: 40px 0;
    }
    
    .contact-container {
        padding: 0 15px;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 25px;
    }
    
    .contact-form-title,
    .contact-info-title {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 12px 15px;
    }
    
    .submit-btn {
        padding: 12px 20px;
    }
}

/* Validation Styles */
.is-invalid {
    border-color: var(--primary-color) !important;
}

.invalid-feedback {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}
