/* ============================================
   CONTACT SECTION STYLES - COMPACT REDESIGN
   ============================================ */

.contact-section {
    padding: 60px 0;
    background: #f8f9fa;
    position: relative;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-section .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.contact-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6B8E23, #9ACD32);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Contact Information Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    border-color: #6B8E23;
}

.card-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6B8E23, #9ACD32);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 18px;
    color: white;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.card-content p {
    color: #6c757d;
    margin-bottom: 2px;
    font-weight: 500;
    font-size: 0.9rem;
}

.card-content small {
    color: #adb5bd;
    font-size: 0.8rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-header p {
    color: #6c757d;
    line-height: 1.4;
    font-size: 0.9rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6B8E23;
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 120px;
    line-height: 1.4;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 14px;
    padding-right: 35px;
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6B8E23, #9ACD32);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 142, 35, 0.3);
    background: linear-gradient(135deg, #556B2F, #6B8E23);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-text {
    font-weight: 600;
}

.submit-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-section .section-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .info-card {
        padding: 18px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-icon i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 35px 0;
    }
    
    .contact-section .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form-wrapper {
        padding: 20px 18px;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .card-icon {
        margin: 0 auto;
    }
}

/* Dark Mode Support - Only when body has dark-mode class */
body.dark-mode .contact-section {
    background: #1a1a1a;
}

body.dark-mode .contact-section .section-title {
    color: #ffffff;
}

body.dark-mode .section-subtitle {
    color: #b0b0b0;
}

body.dark-mode .info-card,
body.dark-mode .contact-form-wrapper {
    background: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

body.dark-mode .card-content h3 {
    color: #ffffff;
}

body.dark-mode .card-content p {
    color: #b0b0b0;
}

body.dark-mode .card-content small {
    color: #808080;
}

body.dark-mode .form-header h3 {
    color: #ffffff;
}

body.dark-mode .form-header p {
    color: #b0b0b0;
}

body.dark-mode .form-group label {
    color: #ffffff;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background: #1a1a1a;
    border-color: #404040;
    color: #ffffff;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: #808080;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus,
body.dark-mode .form-group select:focus {
    border-color: #6B8E23;
    background: #1a1a1a;
}

/* CRITICAL: Ensure form elements are always visible */
.contact-form * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.form-group input,
.form-group textarea,
.form-group select {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
} 