/* Contact Modal - Professional & Minimalist Design */

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    padding-top: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

@keyframes modalPopIn {
    0% { transform: scale(0.95) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Close button */
.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 6px;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Contact Modal - Exact Photo Match */
.contact-modal-photo {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 95%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    min-height: 400px;
    animation: modalPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Left Section - Primary Blue Background */
.contact-left-section {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    /* Responsive image sizing for the decorative image */
    --contact-image-size: 240px; /* desktop balanced to avoid excess height */
    /* Ensure comfortable spacing between image and headline */
    padding-top: 12.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    row-gap: 1rem;
    position: relative;
    border-radius: 12px 0 0 12px;
}

/* (removed experience badge styles from contact modal) */

/* Top-left decorative/brand image */
.contact-brand-image {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--contact-image-size);
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    pointer-events: none; /* purely decorative */
    z-index: 0;
}

@media (max-width: 640px) {
    .contact-left-section { --contact-image-size: 200px; }
    .contact-brand-image { top: 12px; }
}

/* Tablet portrait and small laptops */
@media (max-width: 1024px) and (min-width: 641px) {
    .contact-left-section { --contact-image-size: 240px; }
}

/* Very small phones */
@media (max-width: 400px) {
    .contact-left-section { --contact-image-size: 160px; }
}

/* Hide contact form image on mobile devices */
@media (max-width: 768px) {
    .contact-brand-image {
        display: none;
    }
    
    .contact-left-section {
        padding-top: 2rem !important;
    }
}

.contact-main-heading {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 1.25rem 0;
    font-family: 'Concert One', cursive;
    color: white;
}

.highlight-great {
    color: #ffffff;
    font-weight: 700;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.contact-info-item i {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block !important;
}

.contact-info-item span {
    color: white;
    font-weight: 400;
}

.social-media-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    align-items: center;
}

.social-icon {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.social-icon i {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    display: inline-block !important;
}

.social-icon:hover {
    color: white !important;
    background: rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.social-icon:hover i {
    color: white !important;
}

/* Right Section - White Modal */
.contact-right-section {
    background: white;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.form-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-title {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.form-title i {
    color: #1a2980;
    font-size: 1.1rem;
}

.contact-form-photo {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.contact-form-photo .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 0 !important;
}

.contact-form-photo .form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.contact-form-photo input,
.contact-form-photo select,
.contact-form-photo textarea {
    padding: 0.75rem 0.875rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    background: white !important;
    font-family: 'Poppins', sans-serif !important;
    color: #111827 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.contact-form-photo input:focus,
.contact-form-photo select:focus,
.contact-form-photo textarea:focus {
    outline: none !important;
    border-color: #1a2980 !important;
    box-shadow: 0 0 0 3px rgba(26, 41, 128, 0.1) !important;
}

.contact-form-photo input::placeholder,
.contact-form-photo textarea::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

.contact-form-photo textarea {
    resize: vertical !important;
    min-height: 100px !important;
    font-family: 'Poppins', sans-serif !important;
}

.contact-form-photo select {
    cursor: pointer !important;
    appearance: none !important;
    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") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
}

.send-message-btn {
    background: #1a2980 !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    font-family: 'Poppins', sans-serif !important;
    margin-top: 1rem !important;
    width: 100% !important;
}

.send-message-btn:hover {
    background: #0056cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(26, 41, 128, 0.3) !important;
}

.send-message-btn i {
    font-size: 1.1rem;
}

/* Photo Modal Responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
        padding-top: 20px;
        align-items: flex-start;
    }
    
    .contact-modal-photo {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        margin: 0;
        max-height: none;
    }
    
    .contact-left-section {
        padding: 2rem 1.5rem;
        border-radius: 12px 12px 0 0;
    }
    
    .contact-right-section {
        padding: 1.5rem;
        border-radius: 0 0 12px 12px;
        overflow-y: auto;
        max-height: none;
    }
    
    .contact-main-heading {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-info-list {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .social-media-icons {
        gap: 0.75rem;
    }
    
    .contact-form-photo .form-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .contact-left-section {
        padding: 1.5rem 1rem;
    }
    
    .contact-right-section {
        padding: 1rem;
    }
    
    .contact-main-heading {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-info-item {
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    
    .contact-info-list {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .social-media-icons {
        gap: 0.5rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}
