/* Contact Us Section Styles */
.contact-us {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
}

/* Contact Info Section */
.contact-info-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.contact-info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-header h3 {
    color: #6b3799;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.contact-info-header p {
    color: #666;
    margin-bottom: 20px;
}

.contact-guidelines {
    margin-bottom: 30px;
}

.guideline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #8e4ec6;
}

.guideline-item i {
    color: #8e4ec6;
    margin-top: 2px;
    flex-shrink: 0;
}

.guideline-item span {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.direct-contact h4 {
    color: #6b3799;
    margin-bottom: 15px;
    border-bottom: 2px solid #8e4ec6;
    padding-bottom: 5px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #8e4ec6, #6b3799);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 78, 198, 0.3);
}

.contact-method i {
    font-size: 1.1rem;
}

/* Contact Form Section */
.contact-form-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.form-header h3 {
    color: #6b3799;
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.form-section h4 {
    color: #6b3799;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #8e4ec6, #6b3799);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
    color: #333;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* Date input styling */
.form-group input[type="date"] {
    color: #333;
    background: white;
    position: relative;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    color: #8e4ec6;
    opacity: 1;
    cursor: pointer;
}

.form-group input[type="date"]:focus::-webkit-calendar-picker-indicator {
    color: #6b3799;
}

.form-group input[type="date"]:invalid {
    color: #999;
}

.form-group input[type="date"]:valid {
    color: #333;
}

/* Better placeholder behavior for date inputs */
.form-group input[type="date"]:not(:valid):not(:focus) {
    color: #999;
}

.form-group input[type="date"]:not(:valid):not(:focus):before {
    content: attr(placeholder);
    position: absolute;
    left: 15px;
    top: 15px;
    color: #999;
    pointer-events: none;
}

/* Enhanced field labels */
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.form-group label::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

.form-group label[for="alternateDate"]::after,
.form-group label[for="companyName"]::after,
.form-group label[for="serviceDetails"]::after {
    content: ' (optional)';
    color: #666;
    font-weight: normal;
    font-size: 13px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8e4ec6;
    box-shadow: 0 0 0 3px rgba(142, 78, 198, 0.1);
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

/* Checkbox Styling */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #333;
}

.checkbox-item:hover {
    background: #e9ecef;
    border-color: #8e4ec6;
}

.checkbox-item.selected {
    background: linear-gradient(135deg, #e8f4fd, #f0e6ff);
    border-color: #8e4ec6;
    color: #6b3799;
    font-weight: 500;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #8e4ec6, #6b3799);
    border-color: #8e4ec6;
    transform: scale(1.1);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-item input[type="checkbox"]:checked ~ span {
    color: #6b3799;
    font-weight: 600;
}

/* SMS Agreement */
.sms-agreement {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
}

.sms-agreement p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Submit Button */
.contact-form .cta-primary.large {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.2rem;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.contact-form .cta-primary.large:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Contact Modal Styles */
#contactModal .modal-content {
    max-width: 500px;
    text-align: center;
}

#contactModal .success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

#contactModal h3 {
    color: #6b3799;
    margin-bottom: 15px;
}

#contactModal .modal-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

#contactModal .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
}

#contactModal .info-item:last-child {
    margin-bottom: 0;
}

#contactModal .info-item i {
    color: #8e4ec6;
    width: 20px;
    text-align: center;
}

/* Form Loading State */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-loading button {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-section {
        position: static;
    }
    
    .contact-form-section {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-us {
        padding: 60px 0;
    }
    
    .contact-form-section {
        padding: 20px;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .contact-info-card {
        padding: 20px;
    }
}