/* ═══════════════════════════════════════════════════════════════
   AEC Post Admission Form — Professional College Form Style
   ═══════════════════════════════════════════════════════════════ */

/* ── Scroll Sentinel (invisible trigger) ── */
.aec-scroll-sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
}

/* ── Sticky CTA Bar ── */
.aec-post-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, #7b1228 0%, #a01535 100%);
    color: #fff;
    padding: 16px 22px;
    border-radius: 12px;
    margin: 28px 0;
    box-shadow: 0 6px 24px rgba(123,18,40,0.28);
    flex-wrap: wrap;
}
.aec-sticky-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.aec-sticky-icon { font-size: 32px; flex-shrink: 0; }
.aec-sticky-left strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}
.aec-sticky-left span {
    font-size: 12px;
    opacity: 0.85;
    display: block;
    margin-top: 2px;
}
.aec-post-form-trigger {
    background: #fff;
    color: #7b1228;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.aec-post-form-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ── Full-Screen Overlay ── */
#aec-post-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 20, 0.72);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: aecPFOverlayIn 0.25s ease;
}
@keyframes aecPFOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal Box ── */
#aec-post-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    animation: aecPFModalIn 0.3s cubic-bezier(.22,.68,0,1.2);
    box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}
@keyframes aecPFModalIn {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Close Button ── */
#aec-post-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.15s;
    line-height: 1;
}
#aec-post-close:hover { background: rgba(255,255,255,0.25); }

/* ── Header ── */
.aec-pf-header {
    background: linear-gradient(135deg, #7b1228 0%, #5a0d1e 50%, #380a15 100%);
    padding: 28px 28px 24px;
    border-radius: 16px 16px 0 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.aec-pf-header::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.aec-pf-header::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -20px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.aec-pf-logo-wrap {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
    border: 1.5px solid rgba(255,255,255,0.18);
}

.aec-pf-institution {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.aec-pf-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.aec-pf-subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

.aec-pf-badges {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.aec-pf-badge {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* ── Body / Form ── */
.aec-pf-body {
    padding: 24px 28px 28px;
}

.aec-pf-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #7b1228;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 18px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #f5e0e4;
}
.aec-pf-section-label:first-child { margin-top: 0; }

.aec-pf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.aec-pf-full { grid-column: 1 / -1; }

.aec-pf-field { display: flex; flex-direction: column; gap: 5px; }
.aec-pf-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: #333;
}
.aec-req { color: #c0392b; }

.aec-pf-field input,
.aec-pf-field select,
.aec-pf-field textarea {
    border: 1.5px solid #e0d0d4;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a2e;
    background: #fdf8f9;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.aec-pf-field input:focus,
.aec-pf-field select:focus,
.aec-pf-field textarea:focus {
    border-color: #7b1228;
    box-shadow: 0 0 0 3px rgba(123,18,40,0.10);
    background: #fff;
}
.aec-pf-field textarea { resize: vertical; min-height: 64px; }
.aec-pf-field select { cursor: pointer; }

/* Error */
.aec-pf-error {
    background: #fff3f3;
    border: 1.5px solid #e74c3c;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}

/* Submit Button */
#aec-pf-submit {
    width: 100%;
    background: linear-gradient(135deg, #7b1228, #a01535);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    transition: opacity 0.15s, transform 0.15s;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(123,18,40,0.35);
}
#aec-pf-submit:hover { opacity: 0.92; transform: translateY(-1px); }
#aec-pf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.aec-pf-privacy {
    font-size: 11.5px;
    color: #999;
    text-align: center;
    margin: 10px 0 0;
}

/* Success State */
#aec-pf-success {
    text-align: center;
    padding: 40px 20px;
}
.aec-pf-success-icon { font-size: 64px; margin-bottom: 16px; }
#aec-pf-success h3 {
    font-size: 22px;
    font-weight: 800;
    color: #1b7a3e;
    margin: 0 0 10px;
}
#aec-pf-success p { font-size: 14px; color: #444; margin: 6px 0; }
.aec-pf-success-college { font-size: 13px; color: #777; }
.aec-pf-close-success-btn {
    margin-top: 20px;
    background: #7b1228;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Inline shortcode trigger */
.aec-inline-form-wrap { margin: 20px 0; text-align: center; }
.aec-inline-trigger {
    background: linear-gradient(135deg, #7b1228, #a01535) !important;
    color: #fff !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    border: none !important;
    box-shadow: 0 4px 16px rgba(123,18,40,0.3) !important;
    transition: opacity 0.15s, transform 0.15s !important;
}
.aec-inline-trigger:hover { opacity: 0.9 !important; transform: translateY(-1px) !important; }

/* Responsive */
@media (max-width: 560px) {
    #aec-post-modal { border-radius: 12px; }
    .aec-pf-header { padding: 22px 18px 18px; }
    .aec-pf-title { font-size: 18px; }
    .aec-pf-body { padding: 18px 16px 20px; }
    .aec-pf-grid { grid-template-columns: 1fr; }
    .aec-post-sticky-cta { padding: 14px 16px; }
    .aec-sticky-left strong { font-size: 13px; max-width: 180px; }
}
