/* ======= Contact Form Cinematic Styling ======= */

.contact-form-wrapper {
    background-color: var(--color-bg);
    padding: var(--space-8);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(91, 101, 174, 0.05);
}

.form-group {
    position: relative;
    margin-bottom: var(--space-6);
}

.form-input {
    width: 100%;
    padding: var(--space-2) 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.2);
    font-size: var(--text-body-large);
    font-family: inherit;
    color: var(--color-text);
    outline: none;
    transition: border-bottom-color var(--transition-fast);
}

/* Form Line Animation */
.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-smooth);
}

.form-input:focus~.form-line {
    width: 100%;
}

/* Floating Label Logic */
.form-label {
    position: absolute;
    top: var(--space-2);
    right: 0;
    /* RTL alignment */
    font-size: var(--text-body-large);
    color: rgba(26, 26, 26, 0.5);
    transition: all var(--transition-fast);
    pointer-events: none;
}

/* Float label up when focused or has value (using placeholder-shown trick) */
.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -20px;
    font-size: var(--text-micro);
    color: var(--color-primary);
    font-weight: 600;
}

/* Prevent text area resize */
textarea.form-input {
    resize: none;
}

/* Submit Morph Animation inside app.js or handled directly */
/* Success State Button override */
.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}