.custom-form__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.custom-form__desc {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 24px;
}

.custom-form__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.custom-form__field {
    position: relative;
}

.custom-form__field input {
    width: 100%;
    padding: 14px 12px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.custom-form__field input:focus {
    border-color: #fb6221;
}

.custom-form__field label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #999;
    pointer-events: none;
    transition: all 0.15s ease;
}

.custom-form__field input:focus ~ label,
.custom-form__field input:not(:placeholder-shown) ~ label {
    top: 8px;
    transform: none;
    font-size: 0.72rem;
    color: #fb6221;
}

.custom-form__field .required {
    color: #e53e3e;
}

.custom-form__error {
    display: block;
    font-size: 0.78rem;
    color: #e53e3e;
    margin-top: 4px;
    min-height: 16px;
}

.custom-form__agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    color: #666;
    cursor: pointer;
    margin-bottom: 4px;
}

.custom-form__agreement input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #fb6221;
}

.custom-form__btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: #fb6221;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.custom-form__btn:hover {
    background: #e0551a;
}

.custom-form__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.custom-form__success {
    text-align: center;
    padding: 32px 16px;
}

.custom-form__success-icon {
    font-size: 3rem;
    color: #38a169;
    margin-bottom: 16px;
}

.custom-form__success p {
    font-size: 1rem;
    margin-bottom: 8px;
}

/* Inline horizontal layout */
.custom-form--inline .custom-form__title {
    font-size: 40px;
    margin-bottom: 12px;
}

.custom-form--inline .custom-form__desc {
    font-size: 17px;
    margin-bottom: 28px;
}

.custom-form--inline .custom-form__agreement span {
    font-size: 11px;
}

.custom-form__fields--row {
    flex-direction: row;
    gap: 12px;
    margin-bottom: 20px;
}

.custom-form__fields--row .custom-form__field {
    flex: 1;
}

.custom-form__fields--row .custom-form__field input {
    padding: 14px 16px;
    border-radius: 6px;
    height: 52px;
    font-size: 0.95rem;
}

.custom-form__btn--auto {
    width: auto;
    min-width: 200px;
    padding: 14px 32px;
}

@media (max-width: 768px) {
    .custom-form__fields--row {
        flex-direction: column;
    }

    .custom-form__btn--auto {
        width: 100%;
    }
}
