
/* --------------------------------------------------
   FLUENT FORM
-------------------------------------------------- */

/* Wrapper */
.fluentform,
.ff-el-group {
    font-family: var(--ed-font-body);
}

/* Labels */
.ff-el-group label.ff-el-input--label {
    display: block;
    font-size: var(--ed-text-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ed-ink-muted);
    margin-bottom: var(--ed-space-2);
}

/* Required star */
.ff-el-group label .ff-el-is-required {
    color: var(--ed-contrast);
}

/* All text inputs, selects, textareas */
.fluentform .ff-el-form-control,
.fluentform select.ff-el-form-control,
.fluentform textarea.ff-el-form-control {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--ed-ink);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: var(--ed-space-3) var(--ed-space-4);
    font-family: var(--ed-font-body);
    font-size: var(--ed-text-base);
    line-height: 1.5;
    transition:
        border-color var(--ed-duration) var(--ed-ease),
        background-color var(--ed-duration) var(--ed-ease),
        box-shadow var(--ed-duration) var(--ed-ease);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

/* Placeholder */
.fluentform .ff-el-form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* Focus state */
.fluentform .ff-el-form-control:focus,
.fluentform select.ff-el-form-control:focus,
.fluentform textarea.ff-el-form-control:focus {
    border-color: var(--ed-contrast);
    background-color: rgba(255, 87, 20, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 87, 20, 0.18);
}

/* Select arrow */
.fluentform select.ff-el-form-control {
    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='rgba(255,255,255,0.45)' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--ed-space-4) center;
    padding-right: var(--ed-space-8);
    cursor: pointer;
}

/* Select option text (browser-rendered) */
.fluentform select.ff-el-form-control option {
    background-color: #0d2660;
    color: var(--ed-ink);
}

/* Textarea */
.fluentform textarea.ff-el-form-control {
    min-height: 130px;
    resize: vertical;
}

/* Validation error */
.ff-el-group .error {
    font-size: var(--ed-text-xs);
    color: #ff7a5c;
    margin-top: var(--ed-space-1);
}

.ff-el-group.ff-el-is-error .ff-el-form-control {
    border-color: #ff7a5c;
}

/* Submit button */
.fluentform .ff-btn-submit,
.fluentform button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--ed-space-4) var(--ed-space-8);
    background-color: var(--ed-contrast);
    color: #fff;
    font-family: var(--ed-font-body);
    font-size: var(--ed-text-base);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition:
        background-color var(--ed-duration) var(--ed-ease),
        transform var(--ed-duration) var(--ed-ease),
        box-shadow var(--ed-duration) var(--ed-ease);
}

.fluentform .ff-btn-submit:hover,
.fluentform button[type="submit"]:hover {
    background-color: #e04a0e;
    box-shadow: 0 6px 24px rgba(255, 87, 20, 0.35);
    transform: translateY(-1px);
}

.fluentform .ff-btn-submit:active,
.fluentform button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Success / confirmation message */
.ff-message-success {
    background-color: rgba(13, 166, 35, 0.12);
    border: 1px solid #0da623;
    border-radius: 6px;
    padding: var(--ed-space-6);
    color: #6ddb80;
    font-size: var(--ed-text-base);
    text-align: center;
}

/* Column layout (two-column rows Fluent creates) */
.ff-el-group .ff-t-container {
    display: flex;
    gap: var(--ed-space-4);
}

.ff-el-group .ff-t-container > .ff-t-cell {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 600px) {
    .ff-el-group .ff-t-container {
        flex-direction: column;
        gap: 0;
    }
}