* ---------- Global Styles ---------- */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* ---------- Form Container ---------- */
#form1 {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    max-width: 700px;
    margin: 30px auto;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

/* ---------- Text Inputs & Textarea ---------- */
.con_txt {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    box-sizing: border-box;
}

.con_txt:focus {
    border-color: #d9534f;
    box-shadow: 0px 0px 4px rgba(217, 83, 79, 0.4);
}

/* ---------- Buttons ---------- */
.btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    border: none;
}

.btn-danger {
    background: #d9534f;
    color: #fff;
}

.btn-danger:hover {
    background: #c9302c;
}

.btn-warning {
    background: #f0ad4e;
    color: #fff;
}

.btn-warning:hover {
    background: #ec971f;
}

/* ---------- Captcha Section ---------- */
#captchaimg {
    margin-bottom: 6px;
    display: block;
}

.captcha-err {
    font-size: 13px;
    color: red;
}

/* ---------- Layout Fixes ---------- */
.plr {
    padding-left: 0;
    padding-right: 0;
}

.mt {
    margin-top: 15px;
}

.text-center {
    text-align: center;
}

/* ---------- Responsive Styling ---------- */
@media (min-width: 768px) {
    .col-md-12, .col-md-6, .col-md-4, .col-md-3 {
        float: left;
    }
}

@media (max-width: 767px) {
    .col-md-12, .col-sm-6, .col-sm-4, .col-sm-3, .col-xs-12, .col-xs-6 {
        width: 100%;
        float: none;
    }
}

/* FIX FORM TURNING BLACK ON MOBILE */

#form1,
#form1 input,
#form1 textarea,
#form1 select {
    background: #ffffff !important;     /* white background */
    color: #000000 !important;          /* black text */
}

#form1 input::placeholder,
#form1 textarea::placeholder {
    color: #555 !important;             /* light grey placeholder */
}

/* Fix mobile black background issue */
@media (max-width: 768px) {
    #form1,
    #form1 input,
    #form1 textarea,
    #form1 select {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #ccc;
    }
}

input.con_txt,
textarea.con_txt {
    background-color: #fff !important;
    color: #000 !important;
}