﻿/* ===========================
   Page Layout
=========================== */

.form-bg {
    padding: 50px;
}

.form-block.form-default {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 34px;
    padding: 55px 90px;
    box-sizing: border-box;
    font-family: Lato, Arial, sans-serif;
}

@media (max-width: 900px) {
    .form-block.form-default {
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .form-bg {
        padding: 20px;
    }

    .form-block.form-default {
        border-radius: 20px;
    }
}


/* ===========================
   Header
=========================== */

.form-block h2,
header h2 {
    text-align: center;
    color: #0054A6;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}


/* ===========================
   Rows
=========================== */

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -18px 28px;
}

.form-col {
    flex: 1;
    padding: 0 18px;
    box-sizing: border-box;
}

.w-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}


@media(max-width:767px) {

    .w-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* ===========================
   Remove Old Section Headers
=========================== */

.form-section-header {
    display: none;
}


/* ===========================
   Labels
=========================== */

.form-label,
label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 400;
    color: #333;
}


/* ===========================
   Inputs
=========================== */

.text-field,
.w-input,
.w-select {
    width: 100%;
    height: 48px;
    border: 1px solid #9b9b9b;
    border-radius: 7px;
    padding: 0 16px;
    font-size: 16px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    font-family: Lato, Arial, sans-serif;
}


textarea.text-field,
textarea.w-input {
    height: 180px;
    padding: 16px;
    resize: none;
}


.text-field:focus,
.w-input:focus,
.w-select:focus {
    outline: none;
    border-color: #0054A6;
}


/* ===========================
   Select
=========================== */

.w-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 45px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath fill='%23333' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 8px;
}

/* ===========================
   Validation
=========================== */

.text-danger {
    display: block;
    margin: 5px 0 10px;
    color: #d9534f;
    font-size: 14px;
    font-weight: 600;
}


/* ===========================
   File Upload Section
=========================== */

#secureContactFilesContainer {
    margin-top: 35px;
}


.file-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 8px;
}


    #secureContactFilesContainer .file-title {
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin-bottom: 10px;
    }


    #secureContactFilesContainer .file-description {
        font-size: 14px;
        color: #444;
        line-height: 1.6;
    }


#addFile {
    background: #ffffff;
    color: #0054A6;
    border: 1px solid #0054A6;
    border-radius: 28px;
    height: 48px;
    padding: 0 26px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: Lato, Arial, sans-serif;
    white-space: nowrap;
}


#validationBox,
.fileError {
    background: #fff2f2;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 12px;
    border-radius: 6px;
    margin-top: 16px;
}

/* Dynamic display helpers */
.file-name-hidden {
    display: none;
}

.file-remove-visible {
    display: inline-block !important;
}

.file-rows-visible {
    display: block !important;
}

/* Individual uploaded file row styling */
.file-row-item {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-row-remove-btn {
    display: inline-block !important;
}


/* ===========================
   Submit Button
=========================== */

#submitButton {
    background: #0054A6;
    color: #FFFFFF;
    border: none;
    border-radius: 26px;
    height: 44px;
    padding: 0 28px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: Lato, Arial, sans-serif;
}


#submitButton:hover {
    background: #004080;
}

#submitButton:disabled {
    background: #b7b7b7;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===========================
   Remove Button
=========================== */

.remove-file-btn {
    display: none;
    background: #ffffff;
    color: #0054A6;
    border: 1px solid #0054A6;
    border-radius: 28px;
    height: 38px;
    padding: 0 18px;
    margin: 10px 0px 0px 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: Lato, Arial, sans-serif;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .remove-file-btn {
        display: none;
        background: #ffffff;
        color: #0054A6;
        border: 1px solid #0054A6;
        border-radius: 28px;
        height: 38px;
        padding: 0 18px;
        margin: 10px 0px 0px 0px;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        font-family: Lato, Arial, sans-serif;
        white-space: nowrap;
    }
}

    /* ===========================
   Required Label
=========================== */

    .form-required-label {
        margin: 25px 0;
        color: #555;
        font-size: 14px;
    }
