/* Contact Page Layout - Background image on body, transparent header */
html, body {
    background: linear-gradient(to bottom, rgba(33, 46, 96, 0.3) 0%, rgba(77, 146, 172, 0.2) 100%), url('../img/header-contact.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-color: transparent !important;
}

header.header-contact {
    background-image: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

@media (min-width: 768px) {
    header.header-contact {
        min-height: auto !important;
        height: auto !important;
    }
}

header.header-contact .header-content {
    position: relative !important;
    padding: 30px 20px !important;
    transform: none !important;
    top: auto !important;
    height: auto !important;
}

@media (min-width: 768px) {
    header.header-contact .header-content {
        position: relative !important;
        padding: 40px 20px !important;
        transform: none !important;
        top: auto !important;
        height: auto !important;
    }
}

.contact-form-section {
    padding: 30px 0 50px;
    background: transparent;
    position: relative;
    min-height: calc(100vh - 400px);
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

@media (min-width: 992px) {
    .contact-form-container {
        max-width: 900px;
        flex-direction: row;
        align-items: flex-start;
    }
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    flex: 1;
    min-width: 0;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

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

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    font-size: 13px;
}

.form-group .required {
    color: #c33;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Merriweather', 'Helvetica Neue', Arial, sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4d92ac;
    box-shadow: 0 0 0 2px rgba(77, 146, 172, 0.1);
}

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

/* File Upload Styling */
.attachment-wrapper {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
    transition: all 0.3s ease;
    margin-top: 6px;
}

.attachment-wrapper:hover {
    border-color: #4d92ac;
    background: #f5f9fb;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-family: 'Merriweather', 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    cursor: pointer;
}

.form-group input[type="file"]:focus {
    outline: none;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    padding: 8px 16px;
    background: #4d92ac;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.form-group input[type="file"]::-webkit-file-upload-button:hover {
    background: #3d7489;
}

.attachment-info {
    color: #666;
    font-size: 11px;
    margin-top: 8px;
    line-height: 1.4;
}

#fileList {
    margin-top: 12px;
    font-size: 12px;
}

#fileList .file-item {
    padding: 8px 10px;
    margin: 6px 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

#fileList .file-item:hover {
    border-color: #4d92ac;
    background: #f5f9fb;
}

#fileList .file-item .file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    font-weight: 500;
}

#fileList .file-item .file-size {
    color: #888;
    margin-left: 12px;
    font-size: 12px;
    font-weight: normal;
}

.recaptcha-container {
    margin: 20px 0 15px;
    display: flex;
    justify-content: flex-start;
}

.btn-send-message {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4d92ac 0%, #3d7489 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(77, 146, 172, 0.25);
    margin-top: 5px;
}

.btn-send-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 146, 172, 0.4);
}

.btn-send-message:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-email-us {
    width: 100%;
    padding: 10px;
    background: white;
    color: #4d92ac;
    border: 2px solid #4d92ac;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-email-us:hover {
    background: #4d92ac;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(77, 146, 172, 0.3);
    text-decoration: none;
}

.form-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    backdrop-filter: blur(10px);
    height: fit-content;
    flex: 0 0 280px;
    min-width: 0;
}

@media (max-width: 991px) {
    .contact-info-box {
        flex: none;
        width: 100%;
    }
}

.contact-info-box h4 {
    color: #212e60;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.contact-info-box p {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

#contactMessageBox {
    display: none;
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

/* Mobile Optimization */
@media (max-width: 767px) {
    .contact-form-section {
        padding: 20px 0 40px;
    }
    
    .contact-form {
        padding: 20px 18px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .contact-info-box {
        padding: 20px 18px;
    }
}

