﻿/* ============================
   Global Styles
============================ */
body {
    background-color: #fbfbfb;
}

section {
    padding-top: 3rem; /* Default for desktops */
}

.Survey_container {
    width: 100%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    margin: 6rem auto;
    padding: 0.8rem 2.5rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .Survey_container:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }


/* ============================
   Typography & UI Elements
============================ */
h5.text-center {
    font-weight: 700;
    color: #800000;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

hr {
    border: none;
    border-top: 2px solid #800000;
    width: 80px;
    margin: 0.5rem auto 1.5rem auto;
}

.form-label {
    font-weight: bold;
    margin-bottom: 0.4rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px 12px;
    font-size: 0.9rem;
    text-align: right;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

    .form-control:focus {
        border-color: #800000;
        box-shadow: 0 0 0 2px rgba(128, 0, 0, 0.2);
        outline: none;
    }

.text-center {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.9rem;
}

/* ============================
   Input with Icon
============================ */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-with-icon i {
        position: absolute;
        right: 10px;
        color: #800000;
        font-size: 1.1rem;
        opacity: 0.8;
    }

    .input-with-icon .form-control {
        padding-right: 35px;
    }

/* ============================
   Button / Logo
============================ */
#LinkButton1 img {
    width: 140px;
    margin-top: 0.8rem;
    opacity: 0.9;
    transition: all 0.2s ease;
}

    #LinkButton1 img:hover {
        opacity: 1;
        transform: scale(1.05);
    }

/* ============================
   Loading Animation
============================ */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gooey {
    position: relative;
    width: 80px;
    height: 20px;
}

    .gooey .dot {
        width: 20px;
        height: 20px;
        background: #800000;
        border-radius: 50%;
        position: absolute;
        animation: gooey 1.5s infinite ease-in-out;
    }

    .gooey .dots span {
        display: inline-block;
        width: 15px;
        height: 15px;
        background: #800000;
        border-radius: 50%;
        margin: 0 3px;
        opacity: 0.8;
    }

@keyframes gooey {
    0%, 100% {
        left: 0;
    }

    50% {
        left: 60px;
    }
}

/* ============================
   Tooltip
============================ */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #ac4545;
    font-weight: bold;
    font-size: 0.95rem;
}

    .tooltip .tooltiptext {
        visibility: hidden;
        width: 250px;
        background-color: #2d617b;
        color: #fff;
        text-align: left;
        border-radius: 6px;
        padding: 8px;
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 0.85rem;
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }

    .tooltip .tooltiptext::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #2d617b transparent transparent transparent;
    }

/* ============================
   RTL Modal
============================ */
.modal-rtl {
    direction: rtl;
    text-align: right;
}

/* ============================
   Image & Pin Marker
============================ */
.img-holder {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

    .img-holder img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }

.pin {
    position: absolute;
    right: 10%;
    top: 60%;
    transform: translate(50%, -50%);
    background: rgba(255, 0, 0, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 50%;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    font-size: 0.9rem;
}

.caption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* ============================
   Captcha Container
============================ */
.captcha-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

    .captcha-container img {
        border: 1px solid #ccc;
        border-radius: 8px;
    }

    .captcha-container input[type="text"],
    .captcha-container .aspNetTextBox {
        flex: 1 1 160px;
        min-width: 140px;
        max-width: 180px;
        padding: 8px 10px;
        font-size: 15px;
        border: 1px solid #bbb;
        border-radius: 8px;
        outline: none;
        text-align: center;
        transition: all 0.2s ease-in-out;
    }

        .captcha-container input[type="text"]:focus {
            border-color: #800000;
            box-shadow: 0 0 4px rgba(128, 0, 0, 0.4);
        }

/* ============================
   Buttons
============================ */
.button-group {
    margin-top: 15px;
    text-align: center;
}
.btn-outline-maroon:hover {
    color: #800000 !important;
    border: 2px solid #800000;
    background-color: transparent;
}



.btn-outline-maroon:hover {
    color: #800000;
    border: 2px solid #800000;
    background-color: transparent;
}
/* ====================================================
   MEDIA QUERIES (Group all responsive styles here)
==================================================== */

/* Max 992px */
@media (max-width: 992px) {
    .Survey_container {
        max-width: 80%;
        padding: 1.5rem;
    }
}

/* Max 768px */
@media (max-width: 768px) {
    section {
        padding-top: 6rem;
    }

    .Survey_container {
        max-width: 90%;
        padding: 1.2rem;
    }

    h5.text-center {
        font-size: 1.2rem;
    }

    .pin {
        right: 12%;
        top: 55%;
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .caption {
        font-size: 0.9rem;
    }
}

/* Max 576px */
@media (max-width: 576px) {
    section {
        padding-top: 6rem;
    }

    .Survey_container {
        max-width: 95%;
        margin: 2rem auto;
        padding: 1rem;
    }

    h5.text-center {
        font-size: 1.1rem;
    }

    .captcha-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

        .captcha-container img {
            width: 100%;
            height: auto;
        }

        .captcha-container input[type="text"],
        .captcha-container .aspNetTextBox {
            width: 100%;
            max-width: 100%;
        }

    .button-group .btn {
        width: 100%;
        font-size: 1rem;
    }

    .img-holder img {
        width: 100%;
        height: auto;
    }

    .modal-body .row {
        flex-direction: column;
    }

    .pin {
        font-size: 0.75rem;
        padding: 4px 8px;
        top: 58%;
        right: 15%;
    }

    .caption {
        font-size: 0.85rem;
    }
}

/* Max 480px */
@media (max-width: 480px) {
    section {
        padding-top: 6rem;
    }
}
