/* =====================================================================
   Admissions Popup – Frontend Styles
   ===================================================================== */

/* Overlay backdrop */
.ap-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.ap-overlay.is-open {
    display: flex;
}

/* Popup card */
.ap-popup {
    background: #ffffff;
    border-radius: 8px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
    animation: ap-slide-in 0.30s cubic-bezier(0.34, 1.26, 0.64, 1) both;
}
@keyframes ap-slide-in {
    from { transform: translateY(-28px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)     scale(1);    opacity: 1; }
}

/* Close button */
.ap-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
    padding:10px;
}
.ap-close:hover { color: #111; }

/* Header */
.ap-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.ap-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.ap-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    color: #111111 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

/* Fields */
.ap-field {
    margin-bottom: 14px;
}
.ap-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.ap-input,
.ap-select {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border: 1.5px solid #d0d0d0;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
    font-family: inherit;
}
.ap-input::placeholder { color: #aaa; }
.ap-input:focus,
.ap-select:focus {
    outline: none;
    border-color: #f0b400;
    box-shadow: 0 0 0 3px rgba(240,180,0,0.18);
}
.ap-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Messages */
.ap-error,
.ap-success {
    font-size: 13px;
    min-height: 18px;
    margin: 0 0 10px;
    padding: 0;
}
.ap-error   { color: #c0392b; }
.ap-success { color: #27ae60; font-weight: 600; }

/* Submit button */
.ap-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: #f0b400;
    color: #111;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s, transform 0.1s;
}
.ap-submit:hover   { background: #d9a200; }
.ap-submit:active  { transform: scale(0.985); }
.ap-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Mobile */
@media (max-width: 480px) {
    .ap-popup {
        padding: 28px 20px 24px;
    }
}
