/* ==========================================================================
   BIDL Custom Forms - Premium Red & Green Theme
   ========================================================================== */

/* Import Modern Font */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

.bidl-form-container {
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 680px;
    margin: 30px auto;
    padding: 35px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 106, 78, 0.12), 0 5px 15px rgba(0, 0, 0, 0.04);
    border-top: 6px solid #006a4e; /* Deep Forest Green */
    position: relative;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.bidl-form-container:hover {
    box-shadow: 0 20px 40px rgba(0, 106, 78, 0.18), 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Header Section */
.bidl-form-container h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #004d38;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.bidl-form-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #f42a41 0%, #006a4e 100%); /* Red to Green Gradient */
    border-radius: 2px;
}

/* Form Layout */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a362d;
    font-size: 15px;
}

.required {
    color: #f42a41; /* Vibrant Crimson Red */
    font-weight: bold;
    margin-left: 2px;
}

/* Input, Textarea & Select Controls */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #2d3748;
    background-color: #f8faf9;
    border: 1.5px solid #d1e2dd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.25s ease-in-out;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background-color: #ffffff;
    border-color: #006a4e;
    box-shadow: 0 0 0 4px rgba(0, 106, 78, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

/* File Upload Customization */
.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    background: #f0f7f4;
    border: 1.5px dashed #006a4e;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #004d38;
}

/* Two Column Layout */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row .col {
    flex: 1;
}

/* Simple Captcha Box */
.captcha-box {
    background: linear-gradient(135deg, #f0f7f4 0%, #e6f2ed 100%);
    padding: 18px;
    border-radius: 10px;
    border-left: 4px solid #f42a41; /* Red Accent */
    margin-top: 10px;
}

.captcha-box label {
    color: #004d38;
    font-size: 15px;
    margin-bottom: 10px;
}

.captcha-box strong {
    color: #f42a41;
    font-size: 17px;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #f8b3bd;
}

/* Submit Button with Dynamic Gradient */
.bidl-btn {
    background: linear-gradient(135deg, #006a4e 0%, #004d38 100%);
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 106, 78, 0.25);
    letter-spacing: 0.3px;
}

.bidl-btn:hover {
    background: linear-gradient(135deg, #f42a41 0%, #d0192f 100%); /* Crimson Red Hover State */
    box-shadow: 0 8px 22px rgba(244, 42, 65, 0.35);
    transform: translateY(-2px);
}

.bidl-btn:active {
    transform: translateY(0);
}

/* Alert Notification Boxes */
.bidl-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.bidl-alert.success {
    background-color: #e6f7f2;
    color: #006a4e;
    border: 1px solid #a3e0ce;
    border-left: 5px solid #006a4e;
}

.bidl-alert.error {
    background-color: #fde8ea;
    color: #d0192f;
    border: 1px solid #f8b3bd;
    border-left: 5px solid #f42a41;
}

/* Responsive Handling */
@media screen and (max-width: 600px) {
    .bidl-form-container {
        padding: 25px 20px;
        margin: 15px auto;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}