@import url("../uibuilder/uib-brand.min.css");

/* ===== Base Layout ===== */

body {
    font-family: sans-serif;
    background: #ffffff;
    color: #072b04;
    margin: 0;
    padding: 1rem;
    max-width: 1024px;
    margin: auto;
}

#app {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ===== Header ===== */

h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #072b04;
}

/* ===== Form Panel ===== */

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;

    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem;

    /* subtle elevation */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Section backgrounds */
.form-row {
    display: flex;
    flex-direction: column;
}

/* ===== Inputs ===== */

label {
    font-weight: bold;
    margin-bottom: 0.35rem;
    color: #072b04;
}

input[type="text"],
select,
textarea {
    font-size: 1.25rem;
    padding: 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #c8c8c8;
    background-color: #ffffff;
    color: #000;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: #0c4507;
    box-shadow: 0 0 0 3px rgba(12, 69, 7, 0.2);
    outline: none;
}

textarea {
    resize: none;
}

/* ===== RADIO GROUP – grid layout, wins over theme ===== */

.radio-group {
    background: #fafafa;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;

    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Each option is a 2-column grid:
   [radio]  [text] */
.radio-group label {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;

    gap: 0.6rem;
    padding: 0.35rem 0;

    font-size: 1rem;
    font-weight: normal;
    color: #222;
    text-align: left !important;

    cursor: pointer;
}

/* Force the radio “dot” into the left cell cleanly */
.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 !important;
    justify-self: start !important;
}

/* ===== Submit Button ===== */

button[type="submit"] {
    padding: 1rem;
    font-size: 1.5rem;
    background-color: #072b04;
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;

    transition: background-color 0.2s ease, transform 0.1s ease;
}

button[type="submit"]:hover {
    background-color: #0c4507;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* ===== Confirmation Popup ===== */

.confirmation {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: bold;
}

/* Make the visitor 'Purpose' section visually pop */
.form-row.visitor-purpose {
    margin-top: 0.5rem;
}

.form-row.visitor-purpose textarea {
    min-height: 6rem;
    background-color: #f9fbf5;
    /* subtle off-white so it looks like a panel */
    border: 2px solid #0c4507;
    /* your green: clearly an input box */
}

/* Placeholder styling: hint but not shouty */
.form-row.visitor-purpose textarea::placeholder {
    color: #7a7a7a;
    font-style: italic;
}

button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #4f654f;
    /* optional: a slightly lighter green */
    box-shadow: none;
    transform: none;
}