/* ============================================================
 * Form Publik Alumni — Stylesheet
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --fp-primary: #1c1c80;
    --fp-primary-light: #34349e;
    --fp-primary-dark: #14145e;
    --fp-accent: #d4af37;
    --fp-success: #059669;
    --fp-success-light: #10b981;
    --fp-danger: #dc2626;
    --fp-warning: #d97706;
    --fp-bg: #f0f4f8;
    --fp-card: #ffffff;
    --fp-text: #1e293b;
    --fp-text-muted: #64748b;
    --fp-border: #e2e8f0;
    --fp-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --fp-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
    --fp-radius: 16px;
    --fp-radius-sm: 10px;
    --fp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body.fp-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--fp-bg);
    color: var(--fp-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Header Band ── */
.fp-hero {
    background: linear-gradient(135deg, var(--fp-primary-dark) 0%, var(--fp-primary) 50%, var(--fp-accent) 100%);
    padding: 48px 24px 64px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.fp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.fp-hero h1 {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.fp-hero p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 300;
}

.fp-hero .fp-icon-grad {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    animation: fp-float 3s ease-in-out infinite;
}

@keyframes fp-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ── Main Container ── */
.fp-container {
    max-width: 720px;
    margin: -40px auto 40px;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

/* ── Card ── */
.fp-card {
    background: var(--fp-card);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow);
    padding: 40px;
    margin-bottom: 24px;
    border: 1px solid var(--fp-border);
    transition: var(--fp-transition);
}

.fp-card:hover {
    box-shadow: var(--fp-shadow-lg);
}

/* ── Steps Indicator ── */
.fp-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.fp-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--fp-border);
    color: var(--fp-text-muted);
    transition: var(--fp-transition);
    flex-shrink: 0;
}

.fp-step-item.active .fp-step-dot {
    background: var(--fp-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(28, 28, 128, 0.4);
}

.fp-step-item.done .fp-step-dot {
    background: var(--fp-success);
    color: #fff;
}

.fp-step-label {
    font-size: 0.8rem;
    color: var(--fp-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.fp-step-item.active .fp-step-label {
    color: var(--fp-primary);
    font-weight: 600;
}

.fp-step-item.done .fp-step-label {
    color: var(--fp-success);
}

.fp-step-line {
    width: 48px;
    height: 2px;
    background: var(--fp-border);
    margin: 0 8px;
    transition: var(--fp-transition);
}

.fp-step-line.done {
    background: var(--fp-success);
}

/* ── Form Elements ── */
.fp-form-group {
    margin-bottom: 20px;
}

.fp-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--fp-text);
}

.fp-form-group label .fp-required {
    color: var(--fp-danger);
    margin-left: 2px;
}

.fp-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--fp-text);
    background: #fff;
    transition: var(--fp-transition);
    outline: none;
}

.fp-input:focus {
    border-color: var(--fp-primary-light);
    box-shadow: 0 0 0 4px rgba(28, 28, 128, 0.12);
}

.fp-input::placeholder {
    color: #94a3b8;
}

select.fp-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

textarea.fp-input {
    resize: vertical;
    min-height: 80px;
}

/* Input teks bebas — huruf besar otomatis */
input.fp-input[type="text"],
input.fp-input[type="search"],
textarea.fp-input {
    text-transform: uppercase;
}

/* ── Buttons ── */
.fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--fp-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fp-transition);
    text-decoration: none;
    line-height: 1.4;
}

.fp-btn-primary {
    background: linear-gradient(135deg, var(--fp-primary), var(--fp-primary-light));
    color: #fff;
    box-shadow: 0 4px 12px rgba(28, 28, 128, 0.3);
}

.fp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 28, 128, 0.4);
}

.fp-btn-primary:active {
    transform: translateY(0);
}

.fp-btn-success {
    background: linear-gradient(135deg, var(--fp-success), var(--fp-success-light));
    color: #fff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.fp-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.fp-btn-outline {
    background: transparent;
    color: var(--fp-text-muted);
    border: 2px solid var(--fp-border);
}

.fp-btn-outline:hover {
    border-color: var(--fp-primary-light);
    color: var(--fp-primary);
    background: rgba(28, 28, 128, 0.05);
}

.fp-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

.fp-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

/* ── Alert / Notifikasi ── */
.fp-alert {
    padding: 14px 18px;
    border-radius: var(--fp-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    animation: fp-fadeIn 0.3s ease-out;
}

.fp-alert-danger {
    background: #fef2f2;
    color: var(--fp-danger);
    border: 1px solid #fecaca;
}

.fp-alert-success {
    background: #ecfdf5;
    color: var(--fp-success);
    border: 1px solid #a7f3d0;
}

.fp-alert-info {
    background: #eff6ff;
    color: var(--fp-primary);
    border: 1px solid #bfdbfe;
}

/* ── Profile Confirmation Card ── */
.fp-profile-confirm {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: var(--fp-radius-sm);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.fp-profile-confirm .fp-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fp-text);
    margin-bottom: 4px;
}

.fp-profile-confirm .fp-meta {
    font-size: 0.85rem;
    color: var(--fp-text-muted);
}

.fp-profile-confirm .fp-meta span {
    margin: 0 8px;
}

/* ── Data Section in Step 3 ── */
.fp-data-section {
    margin-bottom: 28px;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    overflow: hidden;
}

.fp-data-section-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--fp-border);
}

.fp-data-section-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--fp-text);
}

.fp-data-section-header i {
    color: var(--fp-primary);
    font-size: 1.1rem;
}

.fp-data-section-body {
    padding: 20px;
}

/* Read-only info table */
.fp-info-table {
    width: 100%;
    border-collapse: collapse;
}

.fp-info-table tr+tr {
    border-top: 1px solid #f1f5f9;
}

.fp-info-table th {
    text-align: left;
    padding: 10px 12px 10px 0;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--fp-text-muted);
    width: 40%;
    vertical-align: top;
}

.fp-info-table td {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--fp-text);
    font-weight: 500;
}

/* Badge for filled/empty */
.fp-badge-filled {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #ecfdf5;
    color: var(--fp-success);
    border: 1px solid #a7f3d0;
}

.fp-badge-empty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #fef3c7;
    color: var(--fp-warning);
    border: 1px solid #fde68a;
}

/* ── Loading Spinner ── */
.fp-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fp-spin 0.7s linear infinite;
}

@keyframes fp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Animations ── */
@keyframes fp-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fp-fade-in {
    animation: fp-fadeIn 0.4s ease-out;
}

/* ── Success View ── */
.fp-success-view {
    text-align: center;
    padding: 40px 20px;
}

.fp-success-view .fp-check-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fp-success), var(--fp-success-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
    animation: fp-popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fp-success-view .fp-check-circle i {
    font-size: 2.2rem;
    color: #fff;
}

.fp-success-view h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.fp-success-view p {
    color: var(--fp-text-muted);
    margin-bottom: 28px;
}

@keyframes fp-popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Footer ── */
.fp-footer {
    text-align: center;
    padding: 24px 16px;
    color: var(--fp-text-muted);
    font-size: 0.8rem;
}

/* ── Tabs (Step 1) ── */
.fp-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-radius: var(--fp-radius-sm);
    overflow: hidden;
    border: 2px solid var(--fp-border);
}

.fp-tab {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: #f8fafc;
    color: var(--fp-text-muted);
    transition: var(--fp-transition);
    border: none;
    font-family: 'Inter', sans-serif;
}

.fp-tab.active {
    background: var(--fp-primary);
    color: #fff;
}

.fp-tab:not(.active):hover {
    background: #e2e8f0;
}

/* ── Search Dropdown ── */
.fp-search-wrapper {
    position: relative;
}

.fp-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid var(--fp-primary-light);
    border-top: none;
    border-radius: 0 0 var(--fp-radius-sm) var(--fp-radius-sm);
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: none;
}

.fp-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.fp-dropdown-item:last-child {
    border-bottom: none;
}

.fp-dropdown-item:hover {
    background: #eff6ff;
}

.fp-dropdown-item .fp-dd-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fp-text);
}

.fp-dropdown-item .fp-dd-meta {
    font-size: 0.78rem;
    color: var(--fp-text-muted);
    margin-top: 2px;
}

.fp-dropdown-empty {
    padding: 16px;
    text-align: center;
    color: var(--fp-text-muted);
    font-size: 0.85rem;
}

.fp-dropdown-loading {
    padding: 16px;
    text-align: center;
    color: var(--fp-primary);
    font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .fp-hero {
        padding: 32px 16px 48px;
    }

    .fp-hero h1 {
        font-size: 1.5rem;
    }

    .fp-card {
        padding: 24px 20px;
    }

    .fp-btn-group {
        flex-direction: column;
    }

    .fp-step-label {
        display: none;
    }

    .fp-step-line {
        width: 32px;
    }

    .fp-info-table th {
        width: 45%;
        font-size: 0.8rem;
    }

    .fp-info-table td {
        font-size: 0.85rem;
    }
}

/* ── Checkbox Label ── */
.fp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fp-text);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.fp-checkbox-label:hover {
    background: #f1f5f9;
}

.fp-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--fp-primary);
    cursor: pointer;
}