/* Page Layout */
.cs_contact_page {
    background: var(--bg-main);
    padding-bottom: 120px;
}

/* Contact Form Container */
.contact_container {

    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 100px 120px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.contact_container::after {
    content: '\f1d8';
    font-family: 'Line Awesome Free';
    font-weight: 900;
    position: absolute;
    top: 60px;
    right: 60px;
    font-size: 120px;
    color: var(--accent);
    opacity: 0.05;
    pointer-events: none;
}

/* Privacy Policy Section */
.agreed {
    margin-bottom: 20px;
    width: 100%;
}

.agreed textarea {
    width: 100% !important;
    height: 180px !important;
    padding: 30px !important;
    border: 1px solid #f0f0f0 !important;
    background: #fbfbfb !important;
    border-radius: var(--radius-md) !important;
    font-size: 15px !important;
    color: var(--text-secondary) !important;
    line-height: 1.7 !important;
    resize: none;
}

.agreed p {
    float: none !important;
    width: 100% !important;
    margin-top: 0 !important;
    text-align: right !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    font-size: 15px !important;
}

.agreed input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    cursor: pointer;
}

/* Form Table */
.contact {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-top: none !important;
    /* Remove original border */
}

.contact tr th,
.contact tr td {
    padding: 15px 0 !important;
    border-bottom: 1px solid #f4f4f4 !important;
    background: transparent !important;
}

.contact tr:first-child th,
.contact tr:first-child td {
    padding-top: 0 !important;
}

.contact tr:last-child th,
.contact tr:last-child td {
    border-bottom: none !important;
}

.contact th {
    text-align: left;
    width: 180px;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
}

/* Input Styles */
.contact input[type='text'],
.contact input[type='email'],
.contact input[type='tel'],
.contact select,
.contact textarea {
    width: 100% !important;
    height: 60px !important;
    padding: 0 25px !important;
    border: 1px solid #f0f0f0 !important;
    background-color: #f8f8f8 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
}

.contact select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 18px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.contact textarea {
    height: 220px !important;
    padding: 25px !important;
    resize: none;
    line-height: 1.6;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
    border-color: var(--accent) !important;
    background: #fff !important;
    outline: none;
    box-shadow: 0 10px 25px rgba(233, 146, 10, 0.08) !important;
}

/* Captcha Styling */
#captcha {
    margin: 10px auto 10px;
    text-align: center;
    padding: 20px 30px;
    border-radius: var(--radius-md);
    display: table;
    /* To make it wrap content if needed, but centering with auto margin */
    width: auto;
    min-width: 300px;
}

#captcha #captcha_img {
}

#captcha input[type="text"] {
    height: 50px;
    border: 1px solid #eee;
    padding: 0 15px;
    border-radius: 8px;
    width: 120px;
}

#captcha #captcha_mp3,
#captcha #captcha_info {
    display: none;
}

#captcha #captcha_reload {background:#ddd; text-indent:0;}

/* Button */
.send_btn1 {
    display: block !important;
    background: #111 !important;
    color: #fff !important;
    padding: 22px 100px !important;
    border-radius: 100px !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    margin: 40px auto 0 !important;
}

.send_btn1:hover {
    background: var(--accent) !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(233, 146, 10, 0.2) !important;
}

.file_upload_wrapper {
    padding: 5px 0;
}

.custom_file_input {
    margin-bottom: 8px;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.custom_file_input:hover {
    border-color: #014099;
    background: #fff;
}

.file_info_text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .contact_container {
        padding: 80px;
    }
}

@media (max-width: 768px) {
    .cs_contact_page {
        padding-bottom: 80px;
    }

    .contact_container {
        padding: 50px 30px;
        border-radius: 0;
    }

    .contact th {
        width: 100%;
        display: block;
        margin-bottom: 10px;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .contact td {
        width: 100%;
        display: block;
        padding-top: 0 !important;
    }

    .send_btn1 {
        width: 100%;
        padding: 20px 0 !important;
    }

    .contact_container::after {
        font-size: 80px;
        top: 30px;
        right: 30px;
    }
}