/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6b7ae6;
    --dark-color: #1d2144;
    --light-color: #f5f8ff;
    --text-color: #4a5568;
    --white: #ffffff;
    --gray: #e2e8f0;
    --light-gray: #f7fafc;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 42px;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    margin-top: 65px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-color);
    margin-top: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* Contact Content */
.contact-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.info-card:hover::before {
    width: 6px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.info-card:hover .info-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: scale(1.1);
}

.info-content h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.info-content p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Action Buttons */
.map-btn,
.call-btn,
.email-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.map-btn:hover,
.call-btn:hover,
.email-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Business Hours */
.business-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.hour-item:last-child {
    border-bottom: none;
}

.hour-item span:first-child {
    font-weight: 500;
    color: var(--dark-color);
}

.hour-item span:last-child {
    color: var(--text-color);
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.form-header p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Error Messages */
.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-color);
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-color);
    margin-top: 5px;
    opacity: 0.7;
}

.char-counter.warning {
    color: var(--warning-color);
}

.char-counter.error {
    color: var(--error-color);
}

/* File Upload */
.file-upload-group {
    margin-top: 10px;
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-display {
    pointer-events: none;
}

.file-upload-display i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload-display span {
    display: block;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.file-upload-display small {
    color: var(--text-color);
    font-size: 12px;
}

.file-preview {
    margin-top: 15px;
    display: none;
}

.file-preview.has-files {
    display: block;
}

.file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-preview-item:last-child {
    margin-bottom: 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    color: var(--primary-color);
}

.file-name {
    font-size: 14px;
    color: var(--dark-color);
}

.file-size {
    font-size: 12px;
    color: var(--text-color);
}

.file-remove {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.file-remove:hover {
    background: var(--error-color);
    color: var(--white);
}

/* Checkbox */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

/* Form Footer */
.form-footer {
    margin-top: 20px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: block;
}

.form-note {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
}

/* Quick Contact */
.quick-contact {
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.quick-contact h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: var(--transition);
}

.quick-link:hover::before {
    transform: translateY(0);
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.quick-link i {
    font-size: 32px;
    z-index: 1;
}

.quick-link span {
    z-index: 1;
}

.quick-link.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.quick-link.telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.quick-link.skype {
    background: linear-gradient(135deg, #00AFF0, #0078D7);
}

.quick-link.calendly {
    background: linear-gradient(135deg, #006BFF, #0052CC);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    margin: 0 auto 20px;
}

.modal-content h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-content p {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-details {
    text-align: left;
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.detail-item ul {
    list-style: none;
    margin-top: 10px;
}

.detail-item li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
}

.detail-item li:before {
    content: "•";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.modal-btn.primary {
    background: var(--primary-color);
    color: var(--white);
}

.modal-btn.primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.modal-btn.secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.modal-btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .contact-form-container {
        padding: 30px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .info-card {
        padding: 25px 20px;
    }
    
    .quick-contact {
        padding: 30px 20px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

/* Animation for elements */
.contact-info .info-card,
.contact-form-container,
.quick-contact {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.contact-info .info-card:nth-child(1) { animation-delay: 0.1s; }
.contact-info .info-card:nth-child(2) { animation-delay: 0.2s; }
.contact-info .info-card:nth-child(3) { animation-delay: 0.3s; }
.contact-info .info-card:nth-child(4) { animation-delay: 0.4s; }
.contact-form-container { animation-delay: 0.5s; }
.quick-contact { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}