/* ================================================
   PLANS & APPLY — /assets/css/plans-style.css
   صفحة الباقات والتقديم | منصة حروف
================================================ */

/* ══════════════════════════════════════
   PLANS PAGE
══════════════════════════════════════ */

.plans-page {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    min-height: 100vh;
}

 

 
.pl-hero {
    padding: 80px 24px 50px;
    text-align: center;
}
.pl-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(79,209,255,0.1);
    border: 1px solid rgba(79,209,255,0.28);
    color: #0ea5e9;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 22px;
}
.pl-hero__title {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9, #A855F7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 16px;
    line-height: 1.2;
}
.pl-hero__desc {
    font-size: 1rem;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.8;
}

 
.pl-toggle-wrap {
    display: flex;
    justify-content: center;
    margin: 36px 0 16px;
}
.pl-toggle {
    display: inline-flex;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(79,209,255,0.22);
    border-radius: 50px;
    padding: 5px;
    gap: 4px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(14,165,233,0.07);
}
.pl-toggle__btn {
    padding: 10px 32px;
    border-radius: 50px;
    border: none;
    background: none;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.28s ease;
    white-space: nowrap;
}
.pl-toggle__btn.active {
    background: linear-gradient(135deg, #0ea5e9, #A855F7);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14,165,233,0.3);
}

 
.pl-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px 100px;
}

 
.pl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

 
.pl-card {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(79,209,255,0.18);
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(36px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.pl-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.3s ease;
}
.pl-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 64px rgba(14,165,233,0.13), 0 6px 20px rgba(168,85,247,0.07);
    border-color: rgba(79,209,255,0.35);
}
.pl-card--featured {
    border-color: rgba(168,85,247,0.38);
    box-shadow: 0 12px 48px rgba(168,85,247,0.13);
}
.pl-card--featured.visible { transform: translateY(-10px); }
.pl-card--featured:hover   { transform: translateY(-18px); box-shadow: 0 32px 72px rgba(168,85,247,0.2); }

 
.pl-card__popular-bar {
    padding: 10px;
    background: linear-gradient(135deg, #A855F7, #0ea5e9);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1.5px;
}

 
.pl-card__head {
    padding: 32px 28px 24px;
    border-bottom: 1px solid rgba(79,209,255,0.1);
}
.pl-card__name {
    font-family: 'Amiri', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px;
}
.pl-card__tagline {
    font-size: 0.83rem;
    color: #94a3b8;
    margin: 0 0 22px;
}
.pl-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.pl-card__price {
    font-size: 2.8rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
}
.pl-card--featured .pl-card__price {
    background: linear-gradient(135deg, #A855F7, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pl-card__currency { font-size: 1rem; font-weight: 700; color: #64748b; }
.pl-card__period   { font-size: 0.78rem; color: #94a3b8; }

 
.pl-card__storage {
    margin-top: 20px;
    background: rgba(79,209,255,0.05);
    border: 1px solid rgba(79,209,255,0.14);
    border-radius: 14px;
    padding: 14px 16px;
}
.pl-card__storage-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.pl-card__storage-label { font-size: 0.77rem; font-weight: 700; color: #64748b; }
.pl-card__storage-val   { font-size: 0.82rem; font-weight: 900; color: #0ea5e9; }
.pl-card__storage-bar {
    height: 5px;
    background: rgba(79,209,255,0.12);
    border-radius: 99px;
    overflow: hidden;
}
.pl-card__storage-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #0ea5e9, #A855F7);
    width: 0;
    transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}

 
.pl-card__features {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.pl-card__feat-group {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 8px 0 3px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(79,209,255,0.1);
}
.pl-card__feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
}
.pl-card__feat--off { color: #94a3b8; }
.pl-card__feat-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
}
.feat-yes { background: rgba(16,185,129,0.12); color: #10b981; }
.feat-no  { background: rgba(148,163,184,0.1);  color: #cbd5e1; }

 
.pl-card__cta { padding: 0 28px 28px; }
.pl-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.28s ease;
}
.pl-card--starter .pl-card__btn {
    background: rgba(79,209,255,0.1);
    border: 1.5px solid rgba(79,209,255,0.3);
    color: #0ea5e9;
}
.pl-card--starter .pl-card__btn:hover {
    background: linear-gradient(135deg, #0ea5e9, #3B82F6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(14,165,233,0.3);
}
.pl-card--featured .pl-card__btn {
    background: linear-gradient(135deg, #A855F7, #0ea5e9);
    color: #fff;
    box-shadow: 0 8px 24px rgba(168,85,247,0.32);
}
.pl-card--featured .pl-card__btn:hover {
    box-shadow: 0 14px 36px rgba(168,85,247,0.48);
    transform: scale(1.02);
}
.pl-card--pro .pl-card__btn {
    background: rgba(14,165,233,0.08);
    border: 1.5px solid rgba(14,165,233,0.28);
    color: #0ea5e9;
}
.pl-card--pro .pl-card__btn:hover {
    background: linear-gradient(135deg, #0ea5e9, #A855F7);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(14,165,233,0.3);
}

 
.ap-wrap--success {
    grid-template-columns: 1fr !important;
    max-width: 560px !important;
}
.social-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.social-link-row input {
    flex: 1;
    margin-bottom: 0 !important;
}
.remove-social-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(239,68,68,0.25);
    background: rgba(239,68,68,0.06);
    color: #ef4444;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}
.remove-social-btn:hover {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.5);
}
.add-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px dashed rgba(14,165,233,0.35);
    background: rgba(14,165,233,0.05);
    color: #0ea5e9;
    font-family: 'Cairo', sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s;
}
.add-social-btn:hover {
    background: rgba(14,165,233,0.12);
    border-color: rgba(14,165,233,0.55);
}
.add-social-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


.pl-note {
    text-align: center;
    color: #94a3b8;
    font-size: 0.84rem;
    margin-top: 36px;
}
.pl-note strong { color: #0ea5e9; font-weight: 700; }


/* ══════════════════════════════════════
   APPLY PAGE
══════════════════════════════════════ */

.apply-page {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    min-height: 100vh;
}

 
.ap-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 32px;
    align-items: start;
}

 
.ap-summary {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(79,209,255,0.2);
    border-radius: 24px;
    padding: 28px 24px;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: apFadeUp 0.6s 0.05s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes apFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.ap-summary__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.ap-summary__plan {
    font-family: 'Amiri', serif;
    font-size: 1.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9, #A855F7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 4px;
}
.ap-summary__type { font-size: 0.82rem; color: #64748b; margin-bottom: 22px; }
.ap-summary__divider { height: 1px; background: rgba(79,209,255,0.14); margin-bottom: 18px; }
.ap-summary__price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.ap-summary__price-label { font-size: 0.83rem; color: #64748b; }
.ap-summary__price-amount { font-size: 1.9rem; font-weight: 900; color: #1e293b; line-height: 1; }
.ap-summary__price-cur { font-size: 0.8rem; color: #94a3b8; }
.ap-summary__period { font-size: 0.73rem; color: #94a3b8; margin-bottom: 20px; }
.ap-summary__note {
    background: rgba(79,209,255,0.06);
    border: 1px solid rgba(79,209,255,0.14);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.65;
}
.ap-summary__note strong { color: #0ea5e9; }
.ap-summary__back {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.ap-summary__back:hover { color: #0ea5e9; }

 
.ap-form-card {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(79,209,255,0.18);
    border-radius: 24px;
    padding: 44px 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: apFadeUp 0.6s 0.12s cubic-bezier(0.22,1,0.36,1) forwards;
}
.ap-form__title {
    font-family: 'Amiri', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}
.ap-form__sub { font-size: 0.88rem; color: #64748b; margin: 0 0 34px; }

 
.ap-field { margin-bottom: 20px; }
.ap-field label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}
.ap-field label .req { color: #ef4444; margin-right: 2px; }
.ap-field input,
.ap-field select,
.ap-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(79,209,255,0.22);
    border-radius: 14px;
    background: rgba(248,249,252,0.8);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    direction: rtl;
    box-sizing: border-box;
}
.ap-field input:focus,
.ap-field select:focus,
.ap-field textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
    background: #fff;
}
.ap-field input.error,
.ap-field select.error,
.ap-field textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}
.ap-field textarea { resize: vertical; min-height: 110px; }
.ap-field select { cursor: pointer; }
.ap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Phone + Country Code ── */
.phone-input-wrap {
    display: flex;
    gap: 0;
    align-items: stretch;
    border: 1.5px solid rgba(79,209,255,0.22);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(248,249,252,0.8);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.phone-input-wrap:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
    background: #fff;
}
.phone-input-wrap.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}
.country-code-select {
    flex: 0 0 100px;
    width: 100px;
    padding: 0 10px 0 6px;
    border-left: none;
    border-right: 1.5px solid rgba(79,209,255,0.22);
    border-radius: 0;
    background: rgba(14,165,233,0.04);
    color: #1e293b;
    font-family: 'Cairo', sans-serif;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    direction: rtl;
    appearance: auto;
    box-sizing: border-box;
}
.phone-number-input {
    flex: 1 1 0%;
    width: 0 !important;          /* يبطل الـ width:100% الجاي من .ap-field input */
    min-width: 80px;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 13px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    direction: ltr;
    text-align: left;
    box-sizing: border-box;
}

 
.ap-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #0ea5e9, #A855F7);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.28s ease;
    box-shadow: 0 8px 24px rgba(14,165,233,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.ap-submit:hover:not(:disabled) {
    box-shadow: 0 14px 36px rgba(14,165,233,0.42);
    transform: translateY(-2px);
}
.ap-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

 
.ap-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
    animation: apFadeUp 0.5s ease both;
}
.ap-success__circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(14,165,233,0.1));
    border: 2px solid rgba(16,185,129,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}
.ap-success__title {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}
.ap-success__msg {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto 28px;
}
.ap-success__order-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 auto 28px;
    padding: 18px 32px;
    background: rgba(14,165,233,0.06);
    border: 1.5px dashed rgba(14,165,233,0.3);
    border-radius: 18px;
    max-width: 260px;
}
.ap-success__order-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ap-success__order-num {
    font-size: 1.9rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0ea5e9, #A855F7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    line-height: 1.1;
}
.ap-success__order-hint {
    font-size: 0.72rem;
    color: #94a3b8;
}
.ap-success__btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}
.ap-success__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.25s;
}
.ap-success__btn--wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 8px 22px rgba(37,211,102,0.3);
}
.ap-success__btn--wa:hover {
    box-shadow: 0 12px 30px rgba(37,211,102,0.45);
    transform: translateY(-2px);
}
.ap-success__btn--back {
    background: rgba(79,209,255,0.08);
    border: 1.5px solid rgba(79,209,255,0.25);
    color: #0ea5e9;
}
.ap-success__btn--back:hover {
    background: rgba(14,165,233,0.14);
}




 
.ap-wrap--success {
    grid-template-columns: 1fr !important;
    max-width: 520px !important;
    padding-top: 40px !important;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
    .ap-wrap { grid-template-columns: 1fr; }
    .ap-summary { position: static; }
}
@media (max-width: 860px) {
    .pl-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .pl-card--featured { transform: none; }
    .pl-card--featured.visible { transform: none; }
    .pl-card--featured:hover { transform: translateY(-10px); }
}
@media (max-width: 600px) {
    .plans-page, .apply-page { padding-top: 72px; }
    .pl-hero { padding: 50px 16px 36px; }
    .pl-section { padding: 10px 16px 60px; }
    .pl-card__head { padding: 24px 20px 20px; }
    .pl-card__features { padding: 20px; }
    .pl-card__cta { padding: 0 20px 20px; }
    .ap-wrap { padding: 36px 16px 60px; }
    .ap-form-card { padding: 28px 20px; }
    .ap-row { grid-template-columns: 1fr; gap: 0; }
    .pl-toggle__btn { padding: 9px 20px; font-size: 0.85rem; }

    /* الهاتف — خانة رمز الدولة */
    .phone-input-wrap { flex-direction: row; }
    .country-code-select {
        flex: 0 0 auto;
        width: auto;
        max-width: 110px;
        font-size: 0.78rem;
        padding: 0 8px;
    }

     
    .ap-success { padding: 36px 16px 40px; }
    .ap-success__title { font-size: 1.6rem; }
    .ap-success__order-box { padding: 16px 20px; max-width: 100%; }
    .ap-success__order-num { font-size: 1.5rem; letter-spacing: 1px; }
    .ap-success__btns { max-width: 100%; }
    .ap-wrap--success { padding: 20px 16px 50px !important; }
}