/*
* THEDI - Contact Section Styles
*/

/* Contact Section Base */
.contact-section {
    position: relative;
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.dark-theme .contact-section {
    background-color: var(--bg-color);
}

/* Background Elements */
.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.contact-bg-shape {
    position: absolute;
    opacity: 0.05;
}

.contact-bg-shape:nth-child(1) {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background-color: var(--primary-color);
    animation: floatAnimation 15s ease-in-out infinite alternate;
}

.contact-bg-shape:nth-child(2) {
    bottom: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background-color: var(--accent-color);
    animation: floatAnimation 12s ease-in-out infinite alternate-reverse;
}

@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(20px, 20px) rotate(10deg);
    }
}

/* Contact Container */
.contact-container {
    position: relative;
    z-index: 10;
}

/* Section Header */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(81, 177, 70, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-title {
    font-size: 2.0rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #004b6b, #51b146);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 20px;
}

.dark-theme .contact-title {
    background: linear-gradient(135deg, #eeeff1, #51b146);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-theme .contact-description {
    color: rgba(238, 239, 241, 0.9);
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.contact-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Contact Content */
.contact-content {
    margin-top: 40px;
}

/* Contact Form Card */
.contact-form-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    height: 100%;
}

.dark-theme .contact-form-card {
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.dark-theme .form-title {
    color: var(--light-color);
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Form Styles */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
    display: block;
}

.contact-form .form-control {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: var(--text-color);
}

.dark-theme .contact-form .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.contact-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(81, 177, 70, 0.25);
}

.contact-form textarea.form-control {
    height: 150px;
    resize: vertical;
}

.contact-form .btn-submit {
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form .btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Info Card */
.contact-info-card {
    background-color: var(--primary-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
}

.info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Contact Info Items */
.contact-info-items {
    margin-bottom: 30px;
    flex-grow: 1;
}

.info-item {
    display: flex;
    margin-bottom: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 20px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.info-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.info-text {
    margin: 0;
    color: #ffffff;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.info-text a {
    color: #ffffff;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
}

.info-text a:hover {
    color: var(--accent-color);
}

/* Social Links */
.contact-social-links {
    margin-top: auto;
}

.social-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-5px);
}

/* Map Container */
.map-container {
    margin-top: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 400px;
}

.dark-theme .map-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background-color: rgba(81, 177, 70, 0.1);
    color: var(--accent-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .contact-section {
        padding: 45px 0;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 30px;
    }
    
    .contact-info-card {
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
    
    .form-title,
    .info-title {
        font-size: 1.3rem;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-subtitle {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 25px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .info-content {
        min-width: 0;
    }
    
    .info-text,
    .info-text a {
        font-size: 0.9rem;
        word-break: break-all;
    }
    
    .contact-form .btn-submit {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

