/* Contact Page Custom CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Main Contact Section */
.ftco-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    min-height: 600px;
}

/* Left Side - Blue Section */
.contact-info-side {
    background: linear-gradient(135deg, #4f73ff 0%, #3b5bdb 100%);
    color: white;
    padding: 50px 40px;
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.contact-info-side::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.contact-info-side::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.contact-info-content {
    position: relative;
    z-index: 2;
}

.contact-info-side h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.contact-info-side > p {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-icon i {
    font-size: 18px;
    color: white;
}

.info-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.info-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.info-text a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.info-text a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Right Side - Form Section */
.contact-form-side {
    flex: 1;
    padding: 50px 40px;
    background: white;
}

.contact-form-side h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2d3748;
}

.form-control:focus {
    outline: none;
    border-color: #4f73ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 115, 255, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

/* Phone Number Field Styling */
.phone-number-container {
    display: flex;
    gap: 10px;
}

.phone-number-container select {
    flex: 0 0 90px; /* Made much smaller - reduced from 180px to 120px */
    min-width: 90px;
    padding: 10px 10px;
}

.phone-number-container input {
    flex: 1; /* This will take up all remaining space */
    min-width: 0; /* Allows it to shrink below its content size if needed */
    padding: 10px 10px;
}


/* Make the select dropdown text smaller to fit */
.phone-number-container select {
    font-size: 14px; /* Smaller font to fit more content */
}
/* Hide country selector if needed */
.contact-wrap select#id_contact_Number_0 {
    display: block !important;
}

/* Textarea specific */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, #4f73ff 0%, #3b5bdb 100%);
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(79, 115, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 115, 255, 0.4);
    background: linear-gradient(135deg, #3b5bdb 0%, #2c4bbd 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Contact Info Below Form */
.contact-info-bottom {
    background: white;
    padding: 80px 0;
    margin-top: 60px;
}

.contact-info-bottom h1 {
    font-size: 48px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 60px;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item i {
    font-size: 48px;
    color: #4f73ff;
    margin-bottom: 20px;
    display: block;
}

.stat-text, .stat-num {
    font-size: 18px;
    color: #4a5568;
    font-weight: 500;
    line-height: 1.4;
}

.stat-text a, .stat-num a {
    color: #4f73ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.stat-text a:hover, .stat-num a:hover {
    color: #3b5bdb;
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.faq-image {
    flex: 0 0 500px;
}

.faq-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.faq-content {
    flex: 1;
}

.faq-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.2;
}

.faq-content .lead {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Accordion Styling */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: white;
    border: none;
    padding: 20px 25px;
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
    border-radius: 12px !important;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: #4f73ff;
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(79, 115, 255, 0.1);
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 25px;
    background: #f8f9fa;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        margin: 20px;
        border-radius: 15px;
    }
    
    .contact-info-side {
        flex: none;
        padding: 40px 30px;
    }
    
    .contact-form-side {
        padding: 40px 30px;
    }
    
    .contact-info-bottom h1 {
        font-size: 36px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .faq-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }
    
    .faq-image {
        flex: none;
        max-width: 400px;
    }
    
    .phone-number-container {
        flex-direction: column;
    }
    
    .phone-number-container select {
        flex: none;
    }
}

@media (max-width: 480px) {
    .contact-info-side, .contact-form-side {
        padding: 30px 20px;
    }
    
    .contact-form-side h3 {
        font-size: 24px;
    }
    
    .contact-info-bottom h1 {
        font-size: 28px;
    }
    
    .faq-content h2 {
        font-size: 32px;
    }
}

/* Additional styling for form validation */
.form-control.is-invalid {
    border-color: #e53e3e;
    background-color: #fed7d7;
}

.form-control.is-valid {
    border-color: #38a169;
    background-color: #c6f6d5;
}

/* Loading and success states */
.form-group.loading .form-control {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom scrollbar for textarea */
.form-control::-webkit-scrollbar {
    width: 8px;
}

.form-control::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.form-control::-webkit-scrollbar-thumb {
    background: #4f73ff;
    border-radius: 4px;
}

.form-control::-webkit-scrollbar-thumb:hover {
    background: #3b5bdb;
}