/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--accent-color) 100%);
    padding: 80px 0;
}

.contact-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Critical fix: Contact section z-index to ensure it's above map */
.wpo-contact-pg-section {
    position: relative !important;
    z-index: 9999 !important;
    background-color: #fff !important;
    padding-bottom: 100px !important;
}

/* Added button styling for form toggle */
.btn-toggle-form {
    display: inline-block;
    margin-top: 2rem;
    transition: all 0.3s ease;
    z-index: 99999 !important;
    position: relative !important;
}

.btn-toggle-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Contact form wrapper with smooth slide animation */
.contact-form-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2rem;
    position: relative !important;
    z-index: 99999 !important;
}

.contact-form-wrapper.active {
    max-height: 1200px;
}

/* Contact Info */
.contact-info {
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 90, 142, 0.1);
    margin-bottom: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 90, 142, 0.15);
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-content p {
    color: var(--text-color);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 90, 142, 0.1);
}

.contact-form h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

/* Enhanced form group with better floating labels */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left top;
    background-color: transparent;
    padding: 0 0.3rem;
}

.form-group .form-control:focus~label,
.form-group .form-control:not(:placeholder-shown)~label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.80rem;
    color: var(--primary-color);
    background-color: white;
    padding: 0 0.4rem;
}

/* Improved form control styling with cleaner design */
.form-control {
    background-color: #ffffff;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.form-control:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 90, 142, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: transparent;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Form layout for better spacing */
.wpo-contact-form-area {
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpo-contact-form-area form .row {
    margin-bottom: 0;
}

/* Centered and enhanced button */
.btn-submit {
    background-color: #9d7f7c;
    /* base color */
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: auto;
    display: inline-block;
    text-align: center;
    transition: background-color 0.6s ease, transform 0.3s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;

    /* Center the button in container */
    margin: 0 auto;
}

/* Hover effect - subtle shade */
.btn-submit:hover {
    background-color: #b08b8a;
    /* thoda bright/muted contrast */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Click effect */
.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Disabled state */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* reCAPTCHA styling */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

/* Improved loader animation */
#loader {
    display: inline-block;
    margin-left: 10px;
    animation: spin 1s linear infinite;
    color: var(--primary-color);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced success and error messages */
.error-handling-messages {
    margin-top: 1.5rem;
}

#success {
    color: #28a745;
    font-weight: bold;
    padding: 1rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    animation: slideIn 0.4s ease;
    display: none;
}

#error {
    color: #dc3545;
    font-weight: bold;
    padding: 1rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    animation: slideIn 0.4s ease;
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Country code styling */
.phone-list p {
    font-family: Arial, sans-serif;
    font-size: 1em;
    margin: 0.3em 0;
    display: flex;
    align-items: center;
}

.phone-number {
    color: #333;
    font-weight: 500;
    margin-right: 0.5em;
}

.country-code {
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.8em;
    padding: 0.2em 0.5em;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
}

/* Map Section - Critical fix for z-index */
.wpo-contact-map-section {
    position: relative;
    z-index: 1 !important;
    margin-top: -50px;
}

.map-section {
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 90, 142, 0.1);
    margin-top: 3rem;
}

.map-section h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Contact title styling with button */
.wpo-contact-title {
    text-align: center;
    margin: 3rem 0 0 0;
    position: relative !important;
    z-index: 99999 !important;
    padding-bottom: 50px;
}

.wpo-contact-title h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.wpo-contact-title p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Submit area proper alignment */
.submit-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-form-wrapper.active {
        max-height: 1500px;
    }

    .wpo-contact-form-area {
        padding: 1.5rem;
    }

    .btn-submit {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .form-control {
        padding: 0.9rem 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }
}