/* =========================================================
   FinerSvent – Frontend Registration Form
   ========================================================= */

.fsv-fe-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Form container ── */
.fsv-fe-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ── Fields grid ── */
.fsv-fe-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 20px;
    margin-bottom: 24px;
}

.fsv-fe-full { width: 100%; }
.fsv-fe-half { width: calc(50% - 10px); }
@media (max-width: 540px) { .fsv-fe-half { width: 100%; } }

/* ── Label ── */
.fsv-fe-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.fsv-fe-req { color: #e74c3c; margin-left: 2px; }

/* ── Inputs ── */
.fsv-fe-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
    font-family: inherit;
}
.fsv-fe-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.12);
}
.fsv-fe-input.fsv-fe-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,.1);
}
.fsv-fe-input::placeholder { color: #9ca3af; }

textarea.fsv-fe-input { resize: vertical; min-height: 90px; }
select.fsv-fe-input   { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; appearance: none; -webkit-appearance: none; }

/* ── File input ── */
.fsv-fe-file {
    display: block;
    width: 100%;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}
.fsv-fe-file::file-selector-button {
    margin-right: 10px;
    padding: 7px 14px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}
.fsv-fe-file::file-selector-button:hover { background: #e5e7eb; }

/* ── Checkbox & radio groups ── */
.fsv-fe-checkgroup,
.fsv-fe-radiogroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fsv-fe-check-opt,
.fsv-fe-radio-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
    padding: 6px 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    transition: border-color .15s, background .15s;
}
.fsv-fe-check-opt:hover,
.fsv-fe-radio-opt:hover {
    border-color: #2271b1;
    background: #f0f6ff;
}
.fsv-fe-check-opt input,
.fsv-fe-radio-opt input {
    width: 16px; height: 16px;
    cursor: pointer;
    accent-color: #2271b1;
    flex-shrink: 0;
}

/* ── Single checkbox ── */
.fsv-fe-checkbox-single {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
}
.fsv-fe-checkbox-single input {
    width: 16px; height: 16px;
    cursor: pointer;
    accent-color: #2271b1;
    flex-shrink: 0;
}

/* ── Layout elements ── */
.fsv-fe-heading { width: 100%; }
.fsv-fe-heading h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 8px 0 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}
.fsv-fe-paragraph { width: 100%; }
.fsv-fe-paragraph p { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 0; }
.fsv-fe-divider { width: 100%; }
.fsv-fe-divider hr { border: none; border-top: 1px solid #e5e7eb; margin: 6px 0; }

/* ── Submit button ── */
.fsv-fe-footer { display: flex; justify-content: flex-start; }
.fsv-fe-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, transform .1s;
    min-width: 160px;
}
.fsv-fe-submit:hover   { background: #135e96; }
.fsv-fe-submit:active  { transform: translateY(1px); }
.fsv-fe-submit:disabled { opacity: .65; cursor: not-allowed; }

/* Spinner */
.fsv-fe-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fsv-fe-spin .6s linear infinite;
    flex-shrink: 0;
}
@keyframes fsv-fe-spin { to { transform: rotate(360deg); } }

/* ── Error box ── */
.fsv-fe-form-error {
    margin-top: 14px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #b91c1c;
    line-height: 1.6;
}
.fsv-fe-error { color: #b91c1c; font-size: 13px; }

/* ── Success state ── */
.fsv-fe-success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 14px;
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 16px;
}
.fsv-fe-succ-icon {
    width: 52px; height: 52px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px rgba(34,197,94,.3);
}
.fsv-fe-succ-msg {
    font-size: 16px;
    color: #15803d;
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.5;
}
.fsv-fe-succ-name {
    font-size: 14px;
    color: #16a34a;
    margin: 0;
}
