.form {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.form__label {
    font-size: var(--fz-sm);
    font-weight: 500;
    color: var(--text-2);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: var(--fz-base);
    color: var(--text-1);
    transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
    outline: none;
    -webkit-appearance: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-3);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form__input--error,
.form__textarea--error {
    border-color: rgba(220, 38, 38, 0.6);
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form__select option {
    background: var(--bg-surface);
    color: var(--text-1);
}

.form__error {
    font-size: var(--fz-sm);
    color: #ef4444;
}

.form__honey {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

/* Inline form (hero / CTA) */
.form--inline {
    flex-direction: row;
    align-items: stretch;
}

.form--inline .form__input {
    flex: 1;
    border-radius: var(--r-full) 0 0 var(--r-full);
    border-right: none;
}

.form--inline .btn {
    border-radius: 0 var(--r-full) var(--r-full) 0;
    flex-shrink: 0;
}

svg.spin {
    animation: spin-svg 0.7s linear infinite;
    display: block;
}

@keyframes spin-svg {
    to { transform: rotate(360deg); }
}

/* Success state */
.form__success {
    text-align: center;
    padding: var(--s-8);
    animation: fade-in 0.4s ease;
}

.form__success-icon {
    width: 56px;
    height: 56px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--s-4);
    font-size: 24px;
}

.form__success-title {
    font-size: var(--fz-xl);
    font-weight: 700;
    margin-bottom: var(--s-2);
}

.form__success-text {
    font-size: var(--fz-base);
    color: var(--text-2);
    margin-bottom: var(--s-5);
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
    .form--inline {
        flex-direction: column;
    }
    .form--inline .form__input {
        border-radius: var(--r-full);
        border-right: 1px solid var(--border);
    }
    .form--inline .btn {
        border-radius: var(--r-full);
    }
}
