/* ============================================================
   AASHKM Alumni Form — Shared Styles (Create & Edit)
   ============================================================ */

/* ---- Page wrapper ---- */
.aashkm-form-page {
    background: #f4f6f0;
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: 60px;
}

/* ---- Hero banner strip ---- */
.form-hero {
    background: linear-gradient(135deg, #1a5c38 0%, #0f3d24 100%);
    border-radius: 16px;
    padding: 2rem 2rem 1.6rem;
    margin-bottom: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.form-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.form-hero .hero-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 800;
    margin-bottom: 4px;
}

.form-hero .hero-sub {
    font-size: 0.88rem;
    opacity: 0.82;
}

.form-hero .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    padding: 2px 12px;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

/* ---- Step indicator ---- */
.form-steps {
    display: flex;
    gap: 0;
    margin-bottom: 1.8rem;
    overflow-x: auto;
    padding-bottom: 4px;
}

.form-step-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
    position: relative;
}

.form-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    right: 0;
    width: 100%;
    height: 2px;
    background: #c8e6c9;
    z-index: 0;
    left: 50%;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f5e9;
    border: 2px solid #a5d6a7;
    color: #1a5c38;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    position: relative;
    z-index: 1;
    transition: background 0.2s, border-color 0.2s;
}

.step-label {
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
    font-weight: 500;
}

/* ---- Section card ---- */
.form-section-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 16px rgba(26, 92, 56, 0.09);
    border: none;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 1.4rem;
    background: linear-gradient(90deg, #1a5c38, #2e7d32);
    color: #fff;
}

.form-section-header .section-icon {
    font-size: 1rem;
    opacity: 0.9;
}

.form-section-header .section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.2px;
}

.form-section-body {
    padding: 1.4rem 1.4rem 0.8rem;
}

/* ---- Form controls ---- */
.aashkm-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a3d24;
    margin-bottom: 4px;
    display: block;
}

.aashkm-label .req {
    color: #e53935;
    margin-left: 2px;
}

.aashkm-input,
.aashkm-select,
.aashkm-textarea {
    width: 100%;
    border: 1.5px solid #c8e6c9;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    color: #222;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.aashkm-input:focus,
.aashkm-select:focus,
.aashkm-textarea:focus {
    border-color: #1a5c38;
    box-shadow: 0 0 0 3px rgba(26, 92, 56, 0.1);
}

.aashkm-input::placeholder,
.aashkm-textarea::placeholder {
    color: #bbb;
    font-size: 0.82rem;
}

.aashkm-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ---- Input with icon ---- */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a5c38;
    font-size: 0.8rem;
    pointer-events: none;
}

.input-icon-wrap .aashkm-input,
.input-icon-wrap .aashkm-select {
    padding-left: 2rem;
}

/* ---- Field group wrapper ---- */
.field-group {
    margin-bottom: 1rem;
}

/* ---- Photo preview ---- */
.photo-upload-wrap {
    border: 2px dashed #a5d6a7;
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    background: #f9fef9;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.photo-upload-wrap:hover {
    border-color: #1a5c38;
    background: #f0faf0;
}

.photo-preview-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #a5d6a7;
    display: block;
    margin: 0 auto 0.6rem;
    box-shadow: 0 2px 10px rgba(26,92,56,0.15);
}

.photo-upload-label {
    font-size: 0.80rem;
    color: #666;
}

.photo-upload-label span {
    color: #1a5c38;
    font-weight: 600;
}

/* file input hidden behind dashed box */
.photo-upload-wrap input[type="file"] {
    width: 100%;
    margin-top: 0.5rem;
}

/* ---- Payment section accent ---- */
.form-section-header.payment-header {
    background: linear-gradient(90deg, #e65100, #f57c00);
}

.payment-note {
    font-size: 0.78rem;
    color: #e65100;
    background: #fff3e0;
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    margin-bottom: 1rem;
    border-left: 3px solid #f57c00;
}

/* ---- PIN note ---- */
.pin-note {
    font-size: 0.78rem;
    color: #555;
    background: #f1f8e9;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid #1a5c38;
}

/* ---- Error alert ---- */
.form-error-alert {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    color: #c62828;
    padding: 0.75rem 1rem;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ---- Submit button ---- */
.btn-aashkm-submit {
    background: linear-gradient(135deg, #1a5c38, #0f3d24);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(26,92,56,0.30);
    width: 100%;
}

.btn-aashkm-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(26,92,56,0.38);
}

.btn-aashkm-submit i {
    margin-right: 8px;
}

/* ---- Side image ---- */
.form-side-img {
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    width: 100%;
    object-fit: cover;
    max-height: 280px;
}

.form-side-info {
    background: linear-gradient(135deg, #1a5c38, #0f3d24);
    border-radius: 14px;
    color: #fff;
    padding: 1.4rem 1.4rem;
    margin-top: 1rem;
}

.form-side-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
}

.form-side-info .info-item i {
    color: #a5d6a7;
    margin-top: 2px;
    min-width: 16px;
}

/* ---- Validation ---- */
.text-danger {
    font-size: 0.75rem;
    margin-top: 2px;
    display: block;
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .aashkm-form-page {
        padding-top: 75px;
    }

    .form-hero {
        padding: 1.4rem 1.2rem 1.2rem;
    }

    .form-section-body {
        padding: 1rem 1rem 0.6rem;
    }

    .form-steps {
        justify-content: flex-start;
    }

    .form-side-img {
        max-height: 200px;
        margin-bottom: 1rem;
    }
}
