/* Basic form input */
.form-input, .form-textarea {
    width: 100%;
    padding: 1rem 0.5rem 0.25rem 0.5rem;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    background: transparent;
    font-size: 1rem;
    box-sizing: border-box;
    color: rgba(0,0,0,0.85);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(0,0,0,0.4);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-bottom-color: rgba(0,0,0,0.45);
}

/* Floating labels */
.floating-input {
    position: relative;
    margin-bottom: 1.5rem;
}
.floating-input label {
    position: absolute;
    left: 0.5rem;
    top: 1rem;
    font-size: 1rem;
    color: rgba(0,0,0,0.4);
    pointer-events: none;
    transition: 0.2s ease all;
    font-weight: normal;
}
.floating-input input:focus + label,
.floating-input textarea:focus + label,
.floating-input input:not(:placeholder-shown) + label,
.floating-input textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.7);
}

/* Dropdown */
.form-select {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    background: transparent;
    font-size: 1rem;
    color: rgba(0,0,0,0.85);
    appearance: none;
    cursor: pointer;
}
.form-select:invalid { color: rgba(0,0,0,0.4); }
.form-select:focus { outline:none; border-bottom-color: rgba(0,0,0,0.45); }
.dropdown-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1rem;
    color: rgba(0,0,0,0.45);
}

/* Button */
.submit-button {
    width:100%; 
    padding:0.75rem 1rem; 
    font-size:1rem; 
    border:none; 
    border-radius:4px; 
    background-color:#000; 
    color:#fff; 
    cursor:pointer; 
    transition: background 0.2s;
    display:flex;
    justify-content:center;
    align-items:center;
}
.btn-spinner { display:flex; align-items:center; gap:6px; }

/* Loader */
.loader {
    border: 2px solid rgba(0,0,0,0.2);
    border-top: 2px solid rgba(0,0,0,0.8);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}