/* Contact Section */
.contact-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #19192C 0%, #2A2A3D 35%, #3B3B4F 65%, #F4F4F4 100%);
    color: #FFFFFF;
}

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

/* Section Header with enhanced contrast */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contact Wrapper with glass effect */
.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(500px, 2fr);
    gap: 40px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Contact Information Card */
.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
    padding-bottom: 0;
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.info-header i {
    font-size: 24px;
    color: #C9A87C;
}

.info-header h3 {
    color: #FFFFFF;
    font-size: 1.25rem;
    margin: 0;
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

/* Social Links with enhanced styling */
.social-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Tooltip Styles */
.social-link[data-tooltip] {
    position: relative;
}

.social-link[data-tooltip]::before {
    position: absolute;
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: rgba(25, 25, 44, 0.9);
    color: #FFFFFF;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.social-link[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

.social-link:hover {
    background: #C9A87C;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 168, 124, 0.3);
    border-color: #C9A87C;
}

.social-link i {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    transition: color 0.3s ease;
}

.social-link:hover i {
    color: #EEEEEF;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Layout */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* Form Groups */
.form-group {
    position: relative;
    flex: 1;
    min-width: 0;
}

.col-md-6 {
    flex: 1;
}

.col-md-12,
.form-group:not(.col-md-6) {
    flex: 0 0 100%;
    width: 100%;
}

/* Required Fields Text */
.form-text {
    color: #666;
    font-size: 0.875rem;
    margin: 10px 0;
    display: block;
}

/* Form Labels */
.form-label {
    display: block;
    margin-bottom: 8px;
    color: #19192C;
    font-weight: 500;
}

/* Submit Button Container */
.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 10px;
}

/* Submit Button */
.contact-submit {
    background: #C9A87C;
    color: #FFFFFF;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
}

.contact-submit:hover:not(:disabled) {
    background: #B89468;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 168, 124, 0.3);
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(25, 25, 44, 0.2);
}

.contact-submit i {
    font-size: 1.1rem;
}

/* Form Controls with enhanced styling */
.form-control {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(25, 25, 44, 0.1);
    border-radius: 8px;
    color: #19192C;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Enhanced Focus State */
.form-control:focus {
    outline: none;
    border-color: #C9A87C;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.1);
}

/* Validation States with Enhanced Visual Feedback */
.form-control.valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2328a745' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.form-control.invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.form-control.valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.form-control.invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Select Validation States */
select.form-control.valid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2328a745' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2328a745' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-position: right 2.5rem center, right 1rem center;
    padding-right: 4rem;
}

select.form-control.invalid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-position: right 2.5rem center, right 1rem center;
    padding-right: 4rem;
}

/* Error Messages */
.error-message {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 0.25rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-control.invalid + .error-message {
    display: block;
}

/* Success/Error Messages */
.contact-success,
.contact-error {
    display: none;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.contact-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 30px;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-control {
        padding: 10px 15px;
    }

    .contact-submit {
        width: 100%;
    }

    .error-message {
        position: static;
        margin-top: 5px;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bi-hourglass-split {
    animation: spin 1s linear infinite;
}

/* Section Divider */
.section-divider-wrapper {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: #19192C;
}

.section-divider-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #F4F4F4;
    clip-path: polygon(0 100%, 100% 100%, 100% 50%, 0 0);
}

/* Update text colors for light background */
.contact-section .section-header h2 {
    color: #19192C;
}

.info-header h3 {
    color: #19192C;
}

.info-card p {
    color: rgba(25, 25, 44, 0.8);
}

.form-control {
    background: rgba(25, 25, 44, 0.05);
    border: 2px solid rgba(25, 25, 44, 0.1);
    color: #19192C;
}

.form-control:focus {
    border-color: var(--secondary-color);
    background: rgba(25, 25, 44, 0.08);
}

.form-control::placeholder {
    color: rgba(25, 25, 44, 0.5);
}

.contact-info,
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.social-link {
    background: #F4F4F4;
}

/* Text alignment */
.text-center {
    text-align: center;
    width: 100%;
}

/* Email Link Styling */
.email-link {
    color: #C9A87C;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.email-link i {
    font-size: 1.1rem;
}

.email-link:hover {
    color: #B89468;
    transform: translateY(-2px);
}