form {
    display: flex;
    flex-direction: column;
    padding: 12px;
    width: 100%;
}

/* Honeypot field: kept in the DOM/tab order out of the way, hidden from real users */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Smaller placeholder text for inputs and textareas */
form input::placeholder,
form textarea::placeholder {
    font-size: 0.8em;
    color: #9aa0a6; /* subtle gray */
}
/* WebKit fallback (older Safari/Chrome) */
form input::-webkit-input-placeholder,
form textarea::-webkit-input-placeholder {
    font-size: 0.8em;
    color: #9aa0a6;
}

fieldset {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-top: 2em;
    margin-top: 40px;
    border-top: 2px solid #69a03d56;
    border-bottom: none;
    border-left: none;
    border-right: none;
    width: 100%; 
    color: #333;
}
fieldset:disabled {
    border-top: 2px solid #c9c9c9;
}
fieldset:disabled * {
    color: #c9c9c9;
}

.label-input-pair {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
}
.label-input-pair label {
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.label-input-pair input[type="checkbox"] {
    margin: 0;
}
.label-input-pair.inline {
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
}

.legal-compact {
    font-size: 0.9em;
    line-height: 1.4;
}
.legal-compact label {
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.legal-compact input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}

.full-width {
    grid-column: span 2;
}

.input-button-combined {
    display: grid;
    grid-template-columns: 9fr 4fr 1fr;
    max-width: 600px;
}

#max-cost {
    display: inline-block;
    width: 4em;
    height: 1.5em;
}

#form-submit-button {
    color: #69a03d;
    padding: 10px 20px;
    font-size: 16px;
    height: 45px;
    margin-left: 15px;
    margin-top: 20px;
    margin-bottom: 50px;
    max-width: 450px;  
    font-size: 20px;
    font-weight: 600; 
}
#form-submit-button:disabled {
    color: #ccc;
}

.input-file {
    border: none;
}


@media (max-width: 760px) {
    fieldset {
        grid-template-columns: repeat(1, 1fr);
    }
    .full-width {
        grid-column: span 1;
        bottom: anchor(top)
    }
}