.rfi-wrapper {
    font-size: 17px;
    line-height: 1.5;
    color: #1c1b1a;
}

.rfi-row {
    margin-bottom: 34px;
}

.rfi-field > label,
.rfi-field legend {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #6d6a64;
    margin-bottom: 0.5rem;
}

.rfi-field label span[aria-hidden],
.rfi-field legend span[aria-hidden] {
    color: #1f3a5f;
}

.rfi-field input[type="text"],
.rfi-field input[type="email"],
.rfi-field input[type="tel"],
.rfi-field select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.0625rem;
    font-family: inherit;
    color: #1c1b1a;
    background: transparent;
    border: none;
    border-bottom: 1px solid #cfcac2;
    border-radius: 0;
    box-shadow: inset 0 -1px 0 transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rfi-field input::placeholder {
    color: #a39e96;
}

.rfi-field input:focus,
.rfi-field select:focus {
    outline: none;
    
       /* thickens the line without layout shift */
}

.rfi-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath fill='none' stroke='%231c1b1a' stroke-width='1.5' d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px top 12px;
    padding-right: 30px;
    cursor: pointer;
}

.rfi-field select:disabled {
    color: #a39e96;
    border-bottom-style: dashed;
    cursor: not-allowed;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath fill='none' stroke='%23a39e96' stroke-width='1.5' d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E");
}


.rfi-field--radio {
    border: none;
    padding: 0;
    margin: 0 0 34px;
}

.rfi-radio-group {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.rfi-radio {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rfi-radio input[type="radio"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #1f3a5f;
    cursor: pointer;
    er; */
}

.rfi-radio label {
    margin: 0;
    font-size: 1rem;
    color: #3d3a36;
    cursor: pointer;
}

/* Hints and legal text */
.rfi-hint {
    margin: 10px 0 0 !important;
    font-size: 0.8125rem;
    color: #8a857d;
}

.rfi-legal {
    margin-top: 20px;
    font-size: 0.8125rem;
    color: #8a857d;
    line-height: 1.6;
}

.rfi-legal a {
    color: #1f3a5f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#rfi-recaptcha {
    margin-bottom: 22px;
}

#rfi-submit-btn {
    padding: 15px 56px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background: #1f3a5f;
    border: 1px solid #1f3a5f;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#rfi-submit-btn:hover:not(:disabled) {
    background: #16293f;
    border-color: #16293f;
}

#rfi-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.rfi-message {
    padding: 18px 22px;
    margin-bottom: 40px;
    background: #faf9f7;
    border-left: 2px solid #1f3a5f;
    font-size: 0.9375rem;
}

.rfi-message strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.rfi-message--success strong { color: #2c5738; }
.rfi-message--success        { border-left-color: #2c5738; }
.rfi-message--error strong   { color: #8c2f2c; }
.rfi-message--error          { border-left-color: #8c2f2c; }

.rfi-message p {
    margin: 0;
    color: #3d3a36;
}

.rfi-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#rfi-recaptcha {
    margin-bottom: .75rem;
}

.rfi-field select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rfi-message--success { color: green; }
.rfi-message--error   { color: red; }
