/* Taj Alwuqar — تنبيهات عقارية (تصميم فاخر) */
*, *::before, *::after { box-sizing: border-box; }

body.palert-page {
    margin: 0;
    font-family: Cairo, system-ui, sans-serif;
    color: #0c1220;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(201, 162, 77, 0.22), transparent 55%),
        radial-gradient(900px 500px at 100% 20%, rgba(59, 130, 246, 0.08), transparent 50%),
        linear-gradient(180deg, #f6f8fc 0%, #eef2f8 45%, #e8ecf4 100%);
}

.palert-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 18px 48px;
}

/* ── Hero (مثل صفحة الخدمات) ── */
.palert-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(36px, 5vw, 52px) clamp(24px, 4vw, 40px);
    background: linear-gradient(135deg, #071225 0%, #0f2744 38%, #15365a 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(6, 12, 28, 0.45);
    text-align: center;
    margin-bottom: 32px;
}

.palert-hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 120%;
    background: radial-gradient(ellipse 70% 55% at 70% 0%, rgba(201, 162, 77, 0.32), transparent 60%);
    pointer-events: none;
}

.palert-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0 0h60v60H0zm60 60h60v60H60z'/%3E%3C/svg%3E");
    opacity: 0.9;
    pointer-events: none;
}

.palert-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.palert-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 18px;
}

.palert-kicker i { color: #e8c547; }

.palert-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.65rem, 4.5vw, 2.35rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #fceea3 50%, #e8c547 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.palert-lead {
    margin: 0 auto 28px;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    max-width: 52ch;
}

.palert-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.palert-step {
    padding: 14px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.palert-step b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a24d, #e8c547);
    color: #0c1220;
    font-size: 0.85rem;
    font-weight: 900;
}

.palert-step span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
}

/* ── Form panel ── */
.palert-main {
    display: flex;
    justify-content: center;
}

.palert-panel {
    width: 100%;
    max-width: 680px;
    background: #fff;
    border-radius: 24px;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(198, 167, 106, 0.35);
    box-shadow:
        0 4px 6px rgba(15, 39, 68, 0.03),
        0 24px 56px rgba(15, 39, 68, 0.1);
    position: relative;
    overflow: hidden;
}

.palert-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f2744, #c9a24d, #e8c547, #0f2744);
}

.palert-panel__head {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.palert-panel__head h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f2744;
}

.palert-panel__head p {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.palert-form fieldset {
    border: none;
    margin: 0 0 24px;
    padding: 0;
}

.palert-block--last { margin-bottom: 8px; }

.palert-block legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f2744;
    margin-bottom: 16px;
    padding: 0;
    width: 100%;
}

.palert-block__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f2744, #15365a);
    color: #fceea3;
    font-size: 0.8rem;
    font-weight: 900;
    flex-shrink: 0;
}

.palert-field { margin-bottom: 14px; }

.palert-field label {
    display: block;
    font-weight: 700;
    font-size: 0.84rem;
    margin-bottom: 7px;
    color: #475569;
}

.palert-field input,
.palert-field select,
.palert-field textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1.5px solid rgba(15, 39, 68, 0.1);
    font-family: inherit;
    font-size: 0.96rem;
    background: #f8fafc;
    color: #0c1220;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.palert-field input::placeholder,
.palert-field textarea::placeholder {
    color: #94a3b8;
}

.palert-field input:focus,
.palert-field select:focus,
.palert-field textarea:focus {
    outline: none;
    border-color: #c9a24d;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 162, 77, 0.15);
}

.palert-field input.is-invalid {
    border-color: #dc2626;
    background: #fef2f2;
}

.palert-field-error {
    font-size: 0.76rem;
    color: #dc2626;
    margin-top: 5px;
    display: none;
}

.palert-field.is-error .palert-field-error { display: block; }

.palert-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.palert-phone-row {
    display: flex;
    gap: 10px;
}

.palert-phone-row select {
    width: 96px;
    flex-shrink: 0;
    padding-left: 10px;
    padding-right: 10px;
}

.palert-phone-row input { flex: 1; min-width: 0; }

.palert-chips {
    display: flex;
    gap: 8px;
}

.palert-chips--compact .palert-chip {
    flex: 1;
}

.palert-chip {
    flex: 1;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1.5px solid rgba(15, 39, 68, 0.1);
    background: #f8fafc;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: #334155;
}

.palert-chip:hover:not(.is-active) {
    border-color: rgba(201, 162, 77, 0.4);
    background: #fff;
}

.palert-chip.is-active {
    border-color: #0f2744;
    background: linear-gradient(165deg, #0f2744, #15365a);
    color: #fceea3;
    box-shadow: 0 8px 22px rgba(15, 39, 68, 0.25);
}

.palert-submit-wrap {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 39, 68, 0.08);
}

.palert-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-family: inherit;
    font-weight: 900;
    font-size: 1.05rem;
    cursor: pointer;
    white-space: nowrap;
    color: #0c1220;
    background: linear-gradient(135deg, #c9a24d 0%, #e8c547 50%, #d4af5a 100%);
    box-shadow: 0 12px 32px rgba(201, 162, 77, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}

.palert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(201, 162, 77, 0.5);
}

.palert-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.palert-trust {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.palert-trust i { color: #c9a24d; }

/* ── Success ── */
.palert-success {
    display: none;
    text-align: center;
    padding: 40px 24px;
}

.palert-success.is-visible { display: block; }

.palert-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 12px 32px rgba(22, 163, 74, 0.35);
}

.palert-success h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f2744;
}

.palert-success p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
    font-size: 0.95rem;
}

.palert-footer {
    text-align: center;
    margin-top: 36px;
    padding-top: 24px;
}

.palert-footer p {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ── CTA صفحة العقار ── */
.prop-alert-cta {
    margin: 28px 0 8px;
    padding: 20px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(201, 162, 77, 0.35);
    box-shadow: 0 8px 28px rgba(15, 39, 68, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.prop-alert-cta__text {
    margin: 0;
    flex: 1;
    min-width: 180px;
    font-weight: 700;
    color: #334155;
    line-height: 1.55;
    font-size: 0.92rem;
}

.prop-alert-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(165deg, #0f2744, #15365a);
    color: #fceea3;
    border: 1px solid rgba(201, 162, 77, 0.5);
    box-shadow: 0 8px 20px rgba(15, 39, 68, 0.2);
    transition: transform 0.15s;
}

.prop-alert-cta__btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 600px) {
    .palert-steps { grid-template-columns: 1fr; max-width: 240px; }
    .palert-grid2 { grid-template-columns: 1fr; }
    .palert-shell { padding: 16px 14px 40px; }
    .palert-chips { flex-wrap: wrap; }
    .palert-chip { min-width: calc(33% - 6px); }
    .prop-alert-cta {
        flex-direction: column;
        text-align: center;
    }
    .prop-alert-cta__btn { width: 100%; }
}
