* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

.tf-wrap {
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    max-width: 680px;
    padding: 0
}

.tf-section {
    background: var(--color-background-primary);
    border: .5px solid var(--color-border-tertiary);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem
}

.tf-form-heading {
    margin-bottom: 1rem
}

.tf-form-heading h2 {
    margin: .25rem 0 .35rem;
    font-size: 24px;
    line-height: 1.2;
    color: var(--color-text-primary)
}

.tf-form-heading p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.55
}

.tf-eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #14B8A6
}

.tf-drug-mode {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap
}

.tf-mode-btn {
    padding: 8px 12px;
    border: .5px solid var(--color-border-secondary);
    border-radius: 8px;
    background: var(--color-background-primary);
    color: var(--color-text-primary);
    cursor: pointer;
    font-size: 14px
}

.tf-mode-btn.active {
    border-color: #14B8A6;
    background: #f7f6ff;
    color: #3c3489
}

.tf-section-title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-tertiary);
    margin-bottom: 1.25rem
}

.tf-field {
    margin-bottom: 1.1rem
}

.tf-field:last-child {
    margin-bottom: 0
}

.tf-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: .4rem;
    color: var(--color-text-primary)
}

.tf-label span {
    font-weight: 400;
    color: var(--color-text-tertiary);
    font-size: 13px;
    margin-left: 4px
}

.tf-input {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    border: .5px solid var(--color-border-secondary);
    border-radius: 8px;
    background: var(--color-background-primary);
    color: var(--color-text-primary);
    outline: none;
    transition: border-color .15s, box-shadow .15s
}

.tf-input:focus {
    border-color: var(--color-border-primary);
    box-shadow: 0 0 0 3px rgba(99, 99, 200, .1)
}

.tf-input::placeholder {
    color: var(--color-text-tertiary)
}

textarea.tf-input {
    resize: vertical;
    min-height: 90px
}

.tf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.tf-row--triple {
    grid-template-columns: repeat(3, 1fr)
}

.tf-radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.tf-radio {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: .5px solid var(--color-border-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all .15s;
    user-select: none
}

.tf-radio input {
    display: none
}

.tf-radio.selected {
    border-color: #14B8A6;
    background: #eeedfe;
    color: #3c3489
}

.tf-radio:hover:not(.selected) {
    background: var(--color-background-secondary)
}

.tf-hint {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 8px
}

.tf-drug-wrap {
    position: relative
}

.tf-drug-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-background-primary);
    border: .5px solid var(--color-border-secondary);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
    z-index: 10;
    max-height: 260px;
    overflow: auto
}

.tf-drug-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: 0;
    text-align: left;
    font-size: 14px;
    cursor: pointer
}

.tf-drug-item:hover {
    background: var(--color-background-secondary)
}

.tf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px
}

.tf-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eeedfe;
    color: #3c3489;
    font-size: 13px
}

.tf-tag button {
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
    font-size: 14px
}

.tf-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 132px;
    padding: 18px;
    border: 1px dashed var(--color-border-secondary);
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s
}

.tf-upload.is-dragover,
.tf-upload:hover {
    border-color: #14B8A6;
    background: #f7f6ff
}

.tf-upload input {
    display: none
}

.tf-upload-text {
    font-size: 14px
}

.tf-upload-meta {
    font-size: 12px;
    color: var(--color-text-tertiary)
}

.tf-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px
}

.tf-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: .5px solid var(--color-border-tertiary);
    border-radius: 8px;
    font-size: 13px
}

.tf-file button {
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1
}

.tf-delivery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.tf-delivery-card {
    display: block;
    padding: 16px;
    border: .5px solid var(--color-border-secondary);
    border-radius: 14px;
    cursor: pointer;
    transition: all .15s;
    position: relative
}

.tf-delivery-card input {
    display: none
}

.tf-delivery-card.selected {
    border-color: #14B8A6;
    background: #f7f6ff;
    box-shadow: 0 0 0 1px rgba(83, 74, 183, .15)
}

.dc-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px
}

.dc-sub {
    font-size: 13px;
    color: var(--color-text-tertiary)
}

.dc-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eeedfe;
    color: #3c3489;
    font-size: 12px;
    font-weight: 600
}

.tf-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px
}

.tf-consent:last-child {
    margin-bottom: 0
}

.tf-consent.has-error {
    padding: 10px;
    border-radius: 8px;
    background: #fff1f2
}

.tf-cb {
    margin-top: 4px
}

.tf-consent-text {
    font-size: 13px;
    line-height: 1.55
}

.tf-consent-text a {
    color: #14B8A6;
    text-decoration: underline
}

.tf-submit,
.tele-form-summary__button {
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: 8px;
    background: #14B8A6;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s ease
}

.tf-submit:hover,
.tele-form-summary__button:hover {
    opacity: .92
}

.tf-submit:disabled,
.tele-form-summary__button:disabled {
    opacity: .55;
    cursor: not-allowed
}

.tf-error {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626
}

.tf-field.has-error .tf-input,
.tf-field.has-error .tf-radio,
.tf-field.has-error .tf-delivery-card {
    border-color: #dc2626
}

.tf-field.has-error .tf-input,
.tf-field.has-error .tf-input:focus {
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12)
}

.tf-field.has-error .tf-label,
.tf-field.has-error .tf-label span,
.tf-field.has-error .tf-error,
.tf-consent.has-error .tf-consent-text {
    color: #b91c1c
}

.tf-field.has-error .tf-radio {
    background: #fff5f5
}

.tf-form-message {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff1f2;
    color: #991b1b;
    font-size: 13px
}

.tele-form-summary {
    width: 100%;
    max-width: 680px
}

.tele-form-summary__card {
    background: var(--color-background-primary);
    border: .5px solid var(--color-border-tertiary);
    border-radius: 14px;
}

.tele-form-summary__title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-tertiary);
    margin-bottom: 1rem
}

.tele-form-summary__rows {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1rem
}

.tele-form-summary__row,
.tele-form-summary__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.tele-form-summary__row {
    font-size: 14px;
    color: var(--color-text-secondary)
}

.tele-form-summary__total {
    padding-top: 1rem;
    border-top: .5px solid var(--color-border-tertiary);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary)
}

.tele-form-summary__button {
    margin-top: 1rem
}

.has-error .tf-radio {
    border-color: #dc2626
}

@media (max-width:640px) {

    .tf-row,
    .tf-row--triple,
    .tf-delivery {
        grid-template-columns: 1fr
    }

    .tf-section,
    .tele-form-summary__card {
        padding: 1.1rem
    }

    .tf-consent {
        align-items: flex-start
    }

    .tele-form-summary__row,
    .tele-form-summary__total {
        align-items: flex-start;
        flex-direction: column
    }
}
