.tm-form-wrap {
    padding-bottom: 10px;
    box-sizing: border-box;
}

.tm-form-header {
    text-align: center;
    margin-bottom: 20px;
}
.tm-modal__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
    margin-bottom: 8px;
}
.tm-form-box__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.45;
    margin: 0;
}

.tm-form-error {
    background: #fde8e8;
    color: #e53935;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.tm-field {
    position: relative;
    display: block;
    margin-top: 24px;
    margin-bottom: 24px;
    cursor: text;
}
.tm-field__caption {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 14px;
    font-weight: 400;
    color: #888;
    margin: 0;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease;
    transform-origin: left top;
    z-index: 1;
}
.tm-required {
    color: #e53935;
    font-weight: bold;
}
.tm-field__value {
    display: block;
}
.tm-field__value input[type="text"],
.tm-field__value input[type="tel"],
.tm-field__value select,
.tm-field__value textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #dcdcdc;
    padding: 12px 0 8px;
    font-size: 15px;
    line-height: 1.4;
    background: transparent;
    transition: border-color 0.2s ease;
    outline: none;
    box-sizing: border-box;
    color: #111;
}
.tm-field__value input:focus,
.tm-field__value select:focus,
.tm-field__value textarea:focus {
    border-bottom-color: #000;
}

.tm-field:focus-within .tm-field__caption,
.tm-field.completed .tm-field__caption {
    transform: translateY(-20px) scale(0.85);
    color: #222;
}

.tm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0 25px;
    cursor: pointer;
    user-select: none;
}
.tm-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.tm-checkbox__custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid #bbb;
    border-radius: 4px;
    background: #fff;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
    margin-top: 1px;
}
.tm-checkbox input:checked + .tm-checkbox__custom {
    background: #000;
    border-color: #000;
}

.tm-checkbox input:checked + .tm-checkbox__custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.tm-checkbox__label {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}
.tm-checkbox__label a {
    color: #444;
    text-decoration: underline;
}

.tm-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.tm-btn--primary {
    background: #000;
    color: #fff;
}
.tm-btn--primary:hover {
    background: #252525;
    color: #fff;
}
.tm-btn--submit {
    width: 100%;
}
.tm-form-actions {
    margin-bottom: 20px;
}

.tm-success-box {
    text-align: center;
    padding: 15px 0;
}
.tm-success-box--title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}
.tm-success-box--text {
    font-size: 14px;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.45;
}

.tm-demo-footer {
    text-align: center;
    font-size: 12px;
    color: #888;
}
.tm-demo-footer a {
    color: #222;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 4px;
}