.od-elf-form,
.od-elf-form * {
    box-sizing: border-box;
}

.od-elf-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: Nunito, Arial, sans-serif;
}

.od-elf-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2d8c7;
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 10px 16px -8px rgba(0, 0, 0, 0.18);
}



/* Special independent referral card. The gradient is based on #F1A934. */
.od-elf-card--referral {
    background-color: #F1A934;
    background-image: linear-gradient(135deg, #F7B846 0%, #F1A934 52%, #E99A28 100%);
    border-color: rgba(139, 87, 12, 0.18);
    box-shadow: 0 12px 20px -10px rgba(116, 73, 10, 0.34);
}

.od-elf-card--referral .od-elf-section-heading,
.od-elf-card--referral .od-elf-label,
.od-elf-card--referral .od-elf-option-text,
.od-elf-card--referral .od-elf-consent-text,
.od-elf-card--referral .od-elf-subtitle {
    color: #2A2014;
}

.od-elf-card--referral .od-elf-input,
.od-elf-card--referral .od-elf-textarea,
.od-elf-card--referral .od-elf-select,
.od-elf-card--referral .od-elf-choice,
.od-elf-card--referral .od-elf-consent {
    background-color: #FFFFFF;
    border-color: rgba(96, 61, 12, 0.18);
}

.od-elf-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
}

.od-elf-icon {
    display: inline-flex;
    line-height: 1;
    flex: 0 0 auto;
}

.od-elf-section-heading {
    margin: 0;
    color: #2a2014;
    font-family: Nunito, Arial, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 900;
    line-height: 28px;
}

.od-elf-subtitle {
    margin: -8px 0 14px;
    color: #6b5c4a;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 12px;
    line-height: 18px;
}

.od-elf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 14px;
}

.od-elf-field:last-child,
.od-elf-consent:last-child {
    margin-bottom: 0;
}

.od-elf-field-half {
    width: calc(50% - 7px);
    display: inline-flex;
    vertical-align: top;
}

.od-elf-field-half + .od-elf-field-half {
    margin-left: 10px;
}

.od-elf-label,
.od-elf-option-text,
.od-elf-consent-text {
    color: #2a2014;
    font-family: Nunito, Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
}

.od-elf-required {
    color: inherit;
}

.od-elf-input,
.od-elf-textarea,
.od-elf-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d8cdbd;
    border-radius: 10px;
    background: #ffffff;
    color: #2a2014;
    outline: none;
    padding: 0 16px;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.od-elf-textarea {
    min-height: 110px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}

.od-elf-input::placeholder,
.od-elf-textarea::placeholder {
    color: #c4b49a;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.od-elf-input:focus,
.od-elf-textarea:focus,
.od-elf-select:focus {
    border-color: #9a8669;
    box-shadow: 0 0 0 3px rgba(154, 134, 105, 0.12);
}

.od-elf-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.od-elf-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.od-elf-choice {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d8cdbd;
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.od-elf-choice:hover {
    border-color: #b8a78d;
}

.od-elf-choice.is-selected {
    border-color: #b59e7a;
    background: #fcfaf6;
    box-shadow: 0 0 0 3px rgba(181, 158, 122, 0.12);
}

.od-elf-choice input,
.od-elf-consent input {
    width: 15px;
    height: 15px;
    margin: 0;
    flex: 0 0 auto;
}

.od-elf-choice-program {
    min-height: 40px;
    gap: 8px;
    padding: 8px 12px;
}

.od-elf-choice-program input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.od-elf-choice-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    background: #f6f0df;
}


.od-elf-choice-check {
    width: 18px;
    height: 18px;
    border: 1px solid #d8cdbd;
    border-radius: 999px;
    flex: 0 0 18px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.od-elf-choice-program.is-selected .od-elf-choice-check {
    border-color: #8fb84a;
    background: #8fb84a;
    box-shadow: 0 0 0 3px rgba(143, 184, 74, 0.14);
}

.od-elf-choice-program.is-selected .od-elf-choice-check::before {
    content: "✓";
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.od-elf-options-programs .od-elf-choice:nth-child(1) .od-elf-choice-icon {
    background: #eef7de;
}
.od-elf-options-programs .od-elf-choice:nth-child(2) .od-elf-choice-icon {
    background: #fff0db;
}
.od-elf-options-programs .od-elf-choice:nth-child(3) .od-elf-choice-icon {
    background: #e8f4ff;
}
.od-elf-options-programs .od-elf-choice:nth-child(4) .od-elf-choice-icon {
    background: #fff5dc;
}
.od-elf-options-programs .od-elf-choice:nth-child(5) .od-elf-choice-icon {
    background: #fff7cf;
}
.od-elf-options-programs .od-elf-choice:nth-child(6) .od-elf-choice-icon {
    background: #e7f1ff;
}

.od-elf-options-programs .od-elf-option-text {
    font-weight: 700;
    font-size: 13px;
    line-height: 18px;
}

.od-elf-choice-program.is-selected .od-elf-choice-icon {
    transform: scale(1.05);
}

.od-elf-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #a28e72 50%), linear-gradient(135deg, #a28e72 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.od-elf-select.od-is-placeholder {
    color: #c4b49a;
}

.od-elf-consent {
    min-height: 44px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #d8cdbd;
    border-radius: 10px;
    background: #ffffff;
    padding: 12px 14px;
    margin: 0 0 14px;
    cursor: pointer;
}

.od-elf-consent input {
    margin-top: 2px;
}

.od-elf-submit-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.od-elf-submit {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: #94a6b6;
    color: #ffffff;
    cursor: pointer;
    font-family: Nunito, Arial, sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 22px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.od-elf-submit:hover {
    opacity: 0.94;
}

.od-elf-submit:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.od-elf-privacy {
    margin: 0;
    text-align: center;
    color: #a28e72;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 11px;
    line-height: 18px;
}

.od-elf-message {
    display: none;
    margin: 0;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    line-height: 19px;
    text-align: left;
}

.od-elf-message.is-success,
.od-elf-message.is-error {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
}

.od-elf-message.is-success {
    color: #276738;
    background: #f3fbf5;
    border: 1px solid rgba(39, 103, 56, 0.18);
}

.od-elf-message.is-error {
    color: #9b2f22;
    background: #fff6f4;
    border: 1px solid rgba(155, 47, 34, 0.18);
}

.od-elf-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {
    .od-elf-card {
        padding: 18px 16px;
        box-shadow: none;
    }

    .od-elf-field-half {
        width: 100%;
        display: flex;
    }

    .od-elf-field-half + .od-elf-field-half {
        margin-left: 0;
    }

    .od-elf-section-heading {
        font-size: 16px;
        line-height: 24px;
    }

    .od-elf-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .od-elf-options:not(.od-elf-options-grid) {
        gap: 8px;
    }

    .od-elf-choice-program {
        min-height: 42px;
        padding: 8px 10px;
        gap: 7px;
    }

    .od-elf-options-programs .od-elf-option-text {
        font-size: 11px;
        line-height: 15px;
        letter-spacing: -0.01em;
    }


    .od-elf-choice-check {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .od-elf-choice-program.is-selected .od-elf-choice-check::before {
        font-size: 11px;
    }

    .od-elf-choice-icon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
        font-size: 11px;
    }
}
