/* Volunteer Application Manager Pro - Multi-step Style */
.vam-wrap {
    max-width: 900px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.vam-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
    border: 1px solid #f1f5f9;
    padding: 35px 40px;
}

/* Header */
.vam-header {
    text-align: center;
    margin-bottom: 30px;
}
.vam-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 10px;
}
.vam-header h2 {
    color: #0f4c81;
    font-size: 24px;
    font-weight: 800;
    margin: 6px 0;
}
.vam-header p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

/* Stepper Bar */
.vam-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
}
.vam-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    cursor: default;
    flex: 1;
}
.vam-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}
.vam-step-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
    transition: color 0.3s ease;
}
.vam-step-item.active .vam-step-circle {
    background: #0f4c81;
    color: #ffffff;
    border-color: #0f4c81;
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.15);
}
.vam-step-item.active .vam-step-label {
    color: #0f4c81;
    font-weight: 700;
}
.vam-step-item.completed .vam-step-circle {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}
.vam-step-item.completed .vam-step-label {
    color: #10b981;
}
.vam-step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    position: relative;
    top: -14px;
    z-index: 1;
    margin: 0 -10px;
    transition: background 0.3s ease;
}
.vam-step-line.active {
    background: #10b981;
}

/* Step Panes */
.vam-step-pane {
    display: none;
    animation: vamFadeIn 0.35s ease forwards;
}
.vam-step-pane.active {
    display: block;
}
@keyframes vamFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.vam-pane-title {
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}
.vam-pane-title h3 {
    margin: 0;
    font-size: 18px;
    color: #0f4c81;
}
.vam-pane-title p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

/* Grid & Inputs */
.vam-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.vam-field {
    display: flex;
    flex-direction: column;
}
.vam-full {
    grid-column: 1 / -1;
}
.vam-field label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.vam-field label span {
    color: #ef4444;
}
.vam-field input[type="text"],
.vam-field input[type="email"],
.vam-field input[type="tel"],
.vam-field input[type="date"],
.vam-field input[type="number"],
.vam-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.vam-field input:focus,
.vam-field select:focus {
    background: #ffffff;
    border-color: #0f4c81;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}
.vam-field input.has-error,
.vam-field select.has-error {
    border-color: #ef4444 !important;
    background-color: #fff5f5 !important;
}

/* Sub-boxes (Conditional) */
.vam-subbox {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
}

/* Day Pills */
.vam-days {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.vam-day-pill input {
    display: none;
}
.vam-day-pill span {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.vam-day-pill input:checked + span {
    background: #0f4c81;
    color: #ffffff;
    border-color: #0f4c81;
}

/* Pledge Card */
.vam-pledge-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
}
.vam-pledge-card p {
    margin: 0 0 8px;
    color: #1e293b;
}
.vam-pledge-card ul {
    margin: 0;
    padding-right: 20px;
    color: #475569;
}
.vam-pledge-card li {
    margin-bottom: 4px;
}
.vam-consent-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    cursor: pointer;
    margin: 15px 0 20px;
}
.vam-consent-box input {
    margin-top: 4px;
    width: 17px;
    height: 17px;
}

/* Buttons & Actions */
.vam-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}
.vam-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.vam-btn-prev {
    background: #f1f5f9;
    color: #475569;
}
.vam-btn-prev:hover {
    background: #e2e8f0;
}
.vam-btn-next {
    background: #0f4c81;
    color: #ffffff;
    margin-right: auto;
}
.vam-btn-next:hover {
    background: #0b3860;
}
.vam-btn-submit {
    background: #10b981;
    color: #ffffff;
    margin-right: auto;
}
.vam-btn-submit:hover {
    background: #059669;
}
.vam-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.vam-message {
    display: none;
    padding: 14px 18px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.vam-message.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.vam-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.vam-hidden {
    display: none !important;
}
.vam-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .vam-card {
        padding: 24px 18px;
    }
    .vam-grid {
        grid-template-columns: 1fr;
    }
    .vam-step-label {
        font-size: 10px;
    }
    .vam-step-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .vam-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}