/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

/* Contact Section Base */
.contact {
    padding: clamp(60px, 5vw, 80px) 0;
    background: #ffffff;
    position: relative;
}

/* Contact Container Layout */
.contact-container {
    display: grid;
    grid-template-columns: minmax(300px, 2fr) minmax(250px, 1fr);
    gap: clamp(30px, 4vw, 50px);
    margin-bottom: clamp(40px, 5vw, 60px);
    align-items: start;
}

/* Contact Information Sidebar */
.contact-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: clamp(30px, 4vw, 40px) clamp(20px, 3vw, 30px);
    border-radius: var(--radius-lg);
    color: white;
    position: sticky;
    top: 100px;
}

/* Information Cards */
.info-card {
    display: flex;
    gap: clamp(15px, 2vw, 20px);
    margin-bottom: clamp(20px, 3vw, 30px);
    padding-bottom: clamp(20px, 3vw, 30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    width: clamp(50px, 5vw, 60px);
    height: clamp(50px, 5vw, 60px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    flex-shrink: 0;
    color: var(--text);
}

.info-content h3 {
    color: white;
    margin-bottom: clamp(8px, 1vw, 10px);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.info-content p {
    opacity: 0.9;
    margin-bottom: 4px;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: white;
    line-height: 1.5;
}

/* Contact Social Links */
.contact-social {
    margin: clamp(30px, 4vw, 40px) 0;
}

.contact-social h3 {
    color: white;
    margin-bottom: clamp(15px, 2vw, 20px);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.social-links {
    display: flex;
    gap: clamp(10px, 1.5vw, 15px);
    flex-wrap: wrap;
    
}

.social-link {
    width: clamp(40px, 4vw, 45px);
    height: clamp(40px, 4vw, 45px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}
.social-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}
/* Icon-specific tweaks */
.fa-instagram, .fa-youtube {
    margin-left: 1px; /* Push right slightly */
}

.fa-facebook-f {
    margin-right: 1px; /* Compensate left */
}
.social-link:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Contact CTA */
.contact-cta {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(20px, 3vw, 25px);
    border-radius: var(--radius);
    text-align: center;
}

.contact-cta h3 {
    color: white;
    margin-bottom: clamp(15px, 2vw, 20px);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* Form Container */
.contact-form-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: 100%;
}

/* Form Header */
.form-header {
    background: linear-gradient(135deg, var(--info-light) 0%, var(--info) 100%);
    color: white;
    padding: clamp(25px, 3vw, 30px);
    text-align: center;
}

.form-header h3 {
    color: white;
    margin-bottom: clamp(8px, 1vw, 10px);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.form-header p {
    opacity: 0.9;
    font-size: clamp(0.9rem, 1vw, 1rem);
}

/* Multi-Step Form */
.multi-step-form {
    padding: clamp(24px, 3vw, 36px);
    min-height: 400px;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Step Header */
.form-step h4 {
    color: var(--dark);
    margin-bottom: clamp(20px, 3vw, 30px);
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 15px);
}

.form-step h4 span {
    width: clamp(35px, 4vw, 40px);
    height: clamp(35px, 4vw, 40px);
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(0.9rem, 1vw, 1rem);
    flex-shrink: 0;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(18px, 2vw, 22px);
    margin-bottom: clamp(24px, 3vw, 28px);
}

.form-group {
    margin-bottom: clamp(16px, 2vw, 20px);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: clamp(8px, 1vw, 10px);
    font-weight: 600;
    color: var(--dark);
    font-size: clamp(0.9rem, 1vw, 1rem);
}

/* Form Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(12px, 2vw, 15px) clamp(16px, 2vw, 20px);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(121, 105, 210, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: clamp(100px, 15vw, 120px);
}

.error-message {
    color: var(--danger);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    margin-top: 5px;
    min-height: 20px;
}

/* Services Checkboxes */
.services-checkbox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(12px, 1.5vw, 15px);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 10px);
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(0.9rem, 1vw, 1rem);
}

.checkbox-label input {
    display: none;
}

/* Checkbox Styling */
.checkbox-custom {
    width: clamp(20px, 2vw, 22px);
    height: clamp(20px, 2vw, 22px);
    min-width: clamp(20px, 2vw, 22px);
    min-height: clamp(20px, 2vw, 22px);
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    display: inline-block;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input {
    display: none;
}

.file-upload-label {
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    padding: clamp(25px, 3vw, 30px) clamp(15px, 2vw, 18px);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: block;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(121, 105, 210, 0.05);
}

.file-upload-label i {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--gray);
    margin-bottom: clamp(12px, 2vw, 15px);
    display: block;
}

.file-upload-label span {
    display: block;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: clamp(0.9rem, 1vw, 1rem);
}

.file-upload-label small {
    color: var(--gray);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    display: block;
    margin-top: 6px;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-item {
    background: var(--gray-light);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.file-item .remove-file {
    color: var(--danger);
    cursor: pointer;
    font-size: 0.8rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: clamp(30px, 4vw, 40px);
    padding-top: clamp(20px, 3vw, 30px);
    border-top: 1px solid var(--gray-light);
    gap: 15px;
}

/* Review Section */
.review-section {
    background: var(--gray-light);
    padding: clamp(20px, 3vw, 25px);
    border-radius: var(--radius);
    margin-bottom: clamp(20px, 3vw, 30px);
}

.review-item {
    margin-bottom: clamp(20px, 3vw, 25px);
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-item h5 {
    color: var(--dark);
    margin-bottom: clamp(8px, 1vw, 10px);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.review-item div {
    color: var(--dark);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1vw, 1rem);
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: clamp(40px, 6vw, 60px) clamp(20px, 3vw, 40px);
}

.success-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(20px, 3vw, 30px);
    color: white;
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.success-message h3 {
    color: var(--dark);
    margin-bottom: clamp(12px, 2vw, 15px);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.success-message p {
    color: var(--gray);
    margin-bottom: clamp(20px, 3vw, 30px);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: clamp(12px, 2vw, 15px);
    justify-content: center;
    flex-wrap: wrap;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: clamp(24px, 3vw, 32px);
    margin-top: clamp(24px, 3vw, 32px);
    position: relative;
    padding: 0 10px;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray-light);
    z-index: 1;
}

.progress-bar {
    position: absolute;
    top: 17px;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 2;
    transition: width 0.3s ease;
    width: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    position: relative;
}

.step-number {
    width: clamp(30px, 4vw, 35px);
    height: clamp(30px, 4vw, 35px);
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: clamp(8px, 1vw, 10px);
    transition: var(--transition);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
}

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
}

.progress-step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: var(--gray);
    font-weight: 500;
    text-align: center;
    max-width: 80px;
}

.progress-step.active .step-label {
    color: var(--dark);
    font-weight: 600;
}

/* Quick Contact Modal */
.quick-contact-modal .modal-content {
    max-width: min(500px, 90vw);
}

.quick-contact-modal .modal-body {
    padding: clamp(30px, 4vw, 40px);
}

.quick-contact-modal h3 {
    text-align: center;
    margin-bottom: clamp(20px, 3vw, 30px);
    color: var(--dark);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: clamp(20px, 5vh, 40px);
    right: clamp(20px, 3vw, 40px);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: clamp(12px, 2vw, 16px) clamp(16px, 2vw, 24px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: min(350px, 90vw);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #FF5722;
}

.toast i {
    font-size: clamp(18px, 2vw, 20px);
}

.toast.success i {
    color: #4CAF50;
}

.toast.error i {
    color: #FF5722;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet Landscape (1200px and below) */
@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: minmax(250px, 1fr) minmax(300px, 1.5fr);
    }
    
    .services-checkbox {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (992px and below) */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: clamp(30px, 5vw, 40px);
    }
    
    .contact-info {
        position: static;
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
    
    .services-checkbox {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Show/hide quick chat button */
    #quickContactBtn {
        display: none !important;
    }
}

/* Mobile Landscape (768px and below) */
@media (max-width: 768px) {
    .contact {
        padding: clamp(40px, 6vw, 50px) 0;
    }
    
    .contact-container {
        gap: clamp(25px, 4vw, 30px);
    }
    
    .multi-step-form {
        padding: clamp(18px, 2.5vw, 24px);
    }
    
    .form-header {
        padding: clamp(20px, 3vw, 25px);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: clamp(15px, 2vw, 18px);
    }
    
    .services-checkbox {
        grid-template-columns: 1fr;
        gap: clamp(10px, 1.5vw, 12px);
    }
    
    .form-actions {
        flex-direction: column;
        gap: clamp(12px, 2vw, 15px);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .progress-indicator {
        padding: 0 5px;
    }
    
    .step-label {
        max-width: 60px;
    }
     .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .info-content p {
        text-align: center;
    }
 .contact-social h3 {
        text-align: center;
    }
    
   
}

/* Mobile Portrait (576px and below) */
@media (max-width: 576px) {
    .contact-info {
        padding: clamp(25px, 4vw, 30px) clamp(15px, 3vw, 20px);
    }
    
  
     .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .info-icon {
        width: clamp(45px, 6vw, 50px);
        height: clamp(45px, 6vw, 50px);
        font-size: clamp(1rem, 1.8vw, 1.2rem);
    }
    
    .form-step h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(8px, 1.5vw, 10px);
    }
    
    .progress-indicator {
        margin-top: clamp(20px, 3vw, 24px);
        margin-bottom: clamp(20px, 3vw, 24px);
    }
    
    .step-number {
        width: clamp(28px, 5vw, 30px);
        height: clamp(28px, 5vw, 30px);
        font-size: clamp(0.7rem, 1vw, 0.8rem);
    }
    
    .step-label {
        font-size: clamp(0.7rem, 1vw, 0.8rem);
        max-width: 50px;
    }
     .contact-social h3 {
        text-align: center;
    }
}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
    .contact {
        padding: clamp(30px, 5vw, 40px) 0;
    }
    
    .multi-step-form {
        padding: clamp(15px, 2vw, 18px);
    }
    
    .form-step h4 span {
        width: clamp(30px, 5vw, 35px);
        height: clamp(30px, 5vw, 35px);
        font-size: clamp(0.8rem, 1vw, 0.9rem);
    }
    
    .social-links {
        justify-content: space-between;
    }
    
    .social-link {
        width: clamp(35px, 6vw, 40px);
        height: clamp(35px, 6vw, 40px);
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .checkbox-custom {
        border-width: 1.5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 1.5px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .social-link:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .social-link:active {
        background: white;
        color: var(--primary);
        transform: scale(0.95);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        min-height: 44px; /* Minimum touch target size */
    }
    
    .checkbox-label {
        min-height: 44px;
        align-items: center;
    }
    
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .contact {
        padding: 20px 0;
        background: white;
    }
    
    .contact-info,
    .social-links,
    .contact-cta {
        display: none;
    }
    
    .contact-form-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .form-header {
        background: #f5f5f5 !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .form-step h4 span {
        background: #666 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
