/* ── Blue Ark Forms ──────────────────────────────────────── */

.baf-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: inherit;
}

/* Grid: 2 columns, last textarea full width */
.baf-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
}

.baf-field {
    width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.baf-field--full {
    width: 100%;
}

/* Labels */
.baf-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.baf-req {
    color: #c0392b;
    margin-left: 2px;
}

/* Inputs, selects, textarea */
.baf-field input,
.baf-field select,
.baf-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd3da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.baf-field select {
    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 fill='%23555' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.baf-field input:focus,
.baf-field select:focus,
.baf-field textarea:focus {
    outline: none;
    border-color: #073153;
    box-shadow: 0 0 0 3px rgba(7, 49, 83, 0.12);
}

.baf-field textarea {
    resize: vertical;
    min-height: 110px;
}

/* Inline field errors */
.baf-error {
    font-size: 12px;
    color: #c0392b;
    min-height: 16px;
}

/* Footer row: message + button */
.baf-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
    width: 100%;
}

/* Status message */
.baf-msg {
    font-size: 14px;
    flex: 1;
    min-height: 20px;
}
.baf-msg--ok    { color: #27ae60; font-weight: 600; }
.baf-msg--error { color: #c0392b; font-weight: 600; }

/* Submit button */
.baf-submit {
    background-color: #073153;
    color: #ffffff;
    border: none;
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.baf-submit:hover  { background-color: #0a4a7a; }
.baf-submit:active { background-color: #051e35; }
.baf-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* Spinner */
.baf-btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: baf-spin 0.7s linear infinite;
}
.baf-submit:disabled .baf-btn-spinner { display: inline-block; }

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

/* Responsive */
@media (max-width: 600px) {
    .baf-field { width: 100%; }
}

/* Event title header */
.baf-event-title {
    font-size: 20px;
    font-weight: 700;
    color: #073153;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #073153;
}

/* Optional label */
.baf-optional {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-left: 4px;
}
