﻿/* === Lease Agreement Form Enhancements === */
.container {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 15px 15px;
    background-color: var(--gray);
    border-radius: 12px;
    border: 1px solid #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.termcontainer {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

    /* This ensures any divs or paragraphs inside also wrap */
    .termcontainer * {
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal;
    }

.form-group {
    display: block !important;
    margin-bottom: 16px !important;
}

    .form-group label,
    .form-group asp\:Label {
        display: block !important;
        margin-bottom: 6px !important;
        position: static !important;
        font-weight: bold;
        font-size: 1rem;
        color: red;
        z-index: auto;
        background: transparent;
    }

    /* Ensure the input itself sits beneath */
    .form-group .form-control,
    .form-group asp\:TextBox.form-control {
        display: block !important;
        margin-top: 0 !important;
        position: relative !important;
        z-index: 0 !important;
    }

    .form-group[class*="col-"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start;
    }
    .form-group asp\:Label,
    .form-group label {
        font-weight: bold;
        color: red;
        margin-bottom: 6px;
    }

    .form-group .form-control,
    asp\:TextBox.form-control {
        padding: 10px 12px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 6px;
        width: 100%;
        box-sizing: border-box;
        font-family: 'Montserrat', sans-serif;
        background-color: #fff;
        color: #333;
        transition: border-color 0.3s;
    }
.form-control,
asp\:TextBox.form-control {
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

        .form-group .form-control:focus {
            border-color: var(--red);
            outline: none;
        }
    /* Ensure labels are fully above and outside the input */
.form-group label,
.form-group asp\:Label {
    display: block !important;
    margin-bottom: 0px !important; /* ↓ smaller space between label and textbox */
    font-weight: bold;
    font-size: 1.4rem !important; /* ↑ increase label size */
    color: black;
    line-height: 1.2;
}

asp\:Label {
    display: block;
    width: 100%;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: bold;
    color: red;
    position: relative;
    z-index: 1;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
}

asp\:TextBox {
    display: block;
    width: 100%;
    z-index: 0;
}

/* Reset any CSS that might be pushing label into input */
.form-control {
    position: relative;
    margin-top: 0;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: red; /* or whatever color */
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}


input[type="button"], .btn-primary {
    background-color: var(--red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
}

    input[type="button"]:hover, .btn-primary:hover {
        background-color: #a00;
        transform: scale(1.05);
    }

h2, h3, h4 {
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
    margin-top: 40px;
}

    h2::after {
        content: "";
        display: block;
        width: 80px;
        height: 4px;
        background: var(--red);
        margin: 15px auto 0;
        border-radius: 4px;
    }

.tools {
    margin-top: 20px;
    text-align: center;
}

    .tools a {
        font-weight: bold;
        color: var(--red);
        margin: 0 10px;
        text-decoration: none;
        transition: color 0.3s;
    }

        .tools a:hover {
            color: #a00;
        }

canvas#colors_sketch {
    display: block;
    margin: 10px auto;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background-color: #fff;
}

#imgCapture {
    display: block;
    margin: 15px auto;
    max-width: 100%;
    border-radius: 6px;
}

.validation-summary-errors {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    font-size: 0.95rem;
    margin-top: 20px;
}


.submitcontainer {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0 20px 20px 20px;
    width: 100%;
}
.btn-primary {
    background-color: var(--red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 1.2rem; /* 🔍 increase this value for bigger text */
    transition: background 0.3s ease, transform 0.2s ease;
    width: auto;
}

    .submitcontainer .btn-primary {
        width: auto; /* prevents it from stretching */
        min-width: 160px; /* optional: keeps size consistent */
    }

.lease-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lease-section {
    background: url('../Images/Flag.jpg') no-repeat center center/cover;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.lease-container {
    min-width: 600px;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    /* Reset container widths and padding */
    .container,
    .lease-container,
    .termcontainer,
    .lease-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
    }

    /* Remove row negative margins and add padding inside */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    /* Force columns to stack vertically and fill 100% width */
    [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Form groups fill width and remove extra margins */
    .form-group,
    .form-group[class*="col-"] {
        width: 100% !important;
        margin: 0 0 16px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

        /* Labels are fully visible and wrapping */
        .form-group label,
        .form-group asp\:Label {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            font-size: 1rem !important;
            font-weight: 600 !important;
            color: #000 !important;
            margin-bottom: 6px !important;
            white-space: normal !important;
            word-break: break-word !important;
            overflow: visible !important;
            text-overflow: unset !important;
            line-height: 1.2;
        }

    /* Inputs full width and box-sizing */
    .form-control,
    asp\:TextBox.form-control {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 12px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    /* Ensure lease-section has some padding but fits screen */


    /* Limit lease-container max width and center it */
    .lease-container {
        max-width: 480px !important; /* Slightly less than 430px */
        min-width: 450px !important;
        margin: 0 auto !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 30px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border: 1px solid #ccc;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
    }

        .lease-container label {
            font-size: 1.4rem !important;
            font-weight: 700; /* optional */
        }
    canvas#colors_sketch {
        display: block;
        margin: 10px auto;
        border: 2px dashed #ccc;
        border-radius: 6px;
        background-color: #fff;
        width: 100% !important; /* make canvas fill container width */
        max-width: 400px !important; /* max width matches container max */
        height: auto !important; /* keep aspect ratio */
        box-sizing: border-box;
    }

    #imgCapture {
        display: block;
        margin: 15px auto;
        max-width: 100% !important; /* responsive width */
        border-radius: 6px;
        height: auto !important;
        box-sizing: border-box;
    }

    #DrpdwnForm {
        margin-left: 15px !important; /* space from left edge */
        margin-right: auto !important;
        display: block !important; /* ensure block so margin applies */
        width: calc(100% - 30px) !important; /* fill width minus margin */
        box-sizing: border-box !important;
        font-size: 1.1rem !important; /* optional bigger font */
    }
}









