/* ===================================================================
   CONTACT SYSTEM - STYLING - EXACT COPY OF UPLOADS WITH TEAL THEME
   Contact section with teal theme matching upload section structure
   =================================================================== */

/* ===================================================================
   CONTACT SECTION BASE STYLING - COPIED FROM UPLOADS
   =================================================================== */
.contact-section {
    margin-top: 20px;
    margin-bottom: 25px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.contact-section .section-title {
    color: #4ECDC4;
}

/* Remove incorrect icon styling - let global .section-icon handle this */

.contact-container {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(78, 205, 196, 0.4);
    box-shadow: 0 0 1px rgba(78, 205, 196, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0 -15px;
}

/* ===================================================================
   CONTACT INFO STYLING - COPIED FROM UPLOADS LOGIN REQUIRED
   =================================================================== */
.contact-info {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info-title {
    font-size: 20px;
    font-weight: 600;
    color: #4ECDC4;
    margin-bottom: 10px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.contact-info-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.contact-info-btn {
    background-color: #4ECDC4;
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Segoe UI", Arial, sans-serif;
}

.contact-info-btn:hover {
    background-color: #44a08d;
    transform: translateY(-1px);
}

/* ===================================================================
   CONTACT MODAL STYLES - COPIED FROM UPLOADS STRUCTURE
   =================================================================== */

/* Contact Modal Base Styles */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(78, 205, 196, 0.4);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 1px rgba(78, 205, 196, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    font-family: "Segoe UI", Arial, sans-serif;
}

.contact-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #4ECDC4;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-close:hover,
.contact-close:focus {
    background-color: rgba(78, 205, 196, 0.2);
}

.contact-modal h2 {
    color: #ffffff;
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 2.2em;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===================================================================
   CONTACT FORM STYLING - COPIED FROM UPLOAD FORM
   =================================================================== */
.contact-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-form-group {
    margin-bottom: 20px;
    flex: 1;
}

.contact-form-group label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: "Segoe UI", Arial, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #4ECDC4;
    background-color: rgba(255, 255, 255, 0.08);
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================================================
   FILE UPLOAD AREA STYLING - COPIED FROM UPLOADS
   =================================================================== */
.contact-file-upload-area {
    border: 2px dashed rgba(78, 205, 196, 0.3);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    margin-bottom: 20px;
}

.contact-file-upload-area:hover {
    border-color: rgba(78, 205, 196, 0.5);
    background-color: rgba(255, 255, 255, 0.05);
}

.contact-file-upload-area.dragover {
    border-color: #4ECDC4;
    background-color: rgba(78, 205, 196, 0.1);
}

.contact-upload-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.contact-upload-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

.contact-upload-link {
    color: #4ECDC4;
    cursor: pointer;
    text-decoration: underline;
}

.contact-upload-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* ===================================================================
   FILE PREVIEW STYLING - COPIED FROM UPLOADS
   =================================================================== */
.contact-file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-file-preview.hidden {
    display: none !important;
}

.contact-preview-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#contactPreviewName {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

#contactPreviewSize {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-remove-file {
    background: none;
    border: none;
    color: #ff8282;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.contact-remove-file:hover {
    background-color: rgba(255, 130, 130, 0.2);
}

/* ===================================================================
   CONTACT SUBMIT BUTTON - COPIED FROM UPLOADS
   =================================================================== */
.contact-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #4ECDC4;
    border: none;
    border-radius: 8px;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Segoe UI", Arial, sans-serif;
}

.contact-submit-btn:hover {
    background-color: #44a08d;
    transform: translateY(-1px);
}

.contact-submit-btn:disabled {
    background-color: rgba(78, 205, 196, 0.3);
    cursor: not-allowed;
    transform: none;
}

/* ===================================================================
   CONTACT STATUS MESSAGES - COPIED FROM UPLOADS
   =================================================================== */
.contact-error,
#contactResponseMessage.error-message {
    background-color: rgba(255, 130, 130, 0.1);
    border: 1px solid rgba(255, 130, 130, 0.3);
    color: #ff8282;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-family: "Segoe UI", Arial, sans-serif;
}

.contact-success,
#contactResponseMessage.success-message {
    background-color: rgba(135, 230, 135, 0.1);
    border: 1px solid rgba(135, 230, 135, 0.3);
    color: #87e687;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */
.hidden {
    display: none !important;
}

/* ===================================================================
   RESPONSIVE DESIGN ADJUSTMENTS - COPIED FROM UPLOADS
   =================================================================== */

/* Desktop */
@media (min-width: 1024px) {
    .contact-container {
        padding: 30px;
        margin: 0 -20px;
        border: 1px solid rgba(78, 205, 196, 0.4);
        box-shadow: 0 0 1px rgba(78, 205, 196, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .contact-container {
        padding: 35px;
        margin: 0 -25px;
        border: 1px solid rgba(78, 205, 196, 0.4);
        box-shadow: 0 0 1px rgba(78, 205, 196, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .contact-container {
        padding: 25px;
        margin: 0 -12px;
        border: 1px solid rgba(78, 205, 196, 0.4);
        box-shadow: 0 0 1px rgba(78, 205, 196, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    }

    .contact-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .contact-container {
        padding: 16px;
        margin: 0 -8px;
        border: 1px solid rgba(78, 205, 196, 0.4);
        box-shadow: 0 0 1px rgba(78, 205, 196, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    }

    .contact-modal-content {
        padding: 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }

    .contact-form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-file-upload-area {
        padding: 20px;
    }

    .contact-upload-icon {
        font-size: 32px;
    }

    .contact-upload-text {
        font-size: 13px;
    }

    .contact-info {
        padding: 30px 15px;
    }

    .contact-info-title {
        font-size: 18px;
    }

    .contact-info-message {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .contact-info-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .contact-container {
        padding: 12px;
        margin: 0 -5px;
        border: 1px solid rgba(78, 205, 196, 0.4);
        box-shadow: 0 0 1px rgba(78, 205, 196, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    }

    .contact-modal-content {
        padding: 15px;
    }

    .contact-file-upload-area {
        padding: 15px;
    }
}
