/* components/field.css */

.field {
    display: grid;
    margin-top: 10px;
    gap: 10px;
    min-width: 0;
    /* IMPORTANT: allow children to shrink inside grids */
}

.field__label {
    font-size: 14px;
    opacity: 0.9;
}

.field__control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    /* IMPORTANT: fixes iOS/date overflow */
    box-sizing: border-box;
    /* safety */
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 16px;
    display: block;
    /* prevents iOS zoom */
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: rgba(0, 0, 0, 0.04);
    color: inherit;
    outline: none;
}

.field__control:focus {
    border-color: rgba(168, 140, 200, 0.75);
    box-shadow: 0 0 0 4px rgba(168, 140, 200, 0.18);
}

input[type="date"].field__control {
    appearance: none;
    -webkit-appearance: none;
}

/* Grid helper used by invoice + receipt + (optionally) quote */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* Anti-bot honeypot */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 720px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}