/* ---------- Parrot Astrology — modern UI ---------- */

.pa-container {
    max-width: 780px;
    margin: 24px auto;
    padding: 26px;
    background: linear-gradient(180deg, #fff 0%, #fff7f3 100%);
    border: 1px solid #ffe3d6;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.08);
}

.pa-title {
    text-align: center;
    margin: 0 0 22px;
    font-size: 26px;
    font-weight: 800;
    color: #C2410C;
}

/* ---------- Form ---------- */
.pa-form {
    display: grid;
    gap: 14px;
}

@media (min-width: 760px) {
    .pa-form {
        grid-template-columns: 1fr 1fr auto;
        align-items: stretch;
    }
}

.pa-form-group { display: flex; flex-direction: column; }

.pa-form input[type="text"],
.pa-form input[type="date"] {
    padding: 12px 14px;
    font-size: 16px;
    color: #333;
    background: #fff;
    border: 1.5px solid #f0d3c4;
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.pa-form input[type="text"]:focus,
.pa-form input[type="date"]:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.pa-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #FF6B35, #F7409B);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.pa-submit-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 64, 155, 0.3);
}

.pa-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.pa-submit-btn .dashicons { font-size: 20px; width: 20px; height: 20px; }

/* ---------- Result ---------- */
.pa-prediction-wrapper { margin-top: 26px; }

.pa-reading-header {
    margin: 0 0 18px;
    padding: 10px 16px;
    font-size: 15px;
    color: #7c4a36;
    background: #fff0e8;
    border-radius: 10px;
}
.pa-reading-header strong { color: #C2410C; font-weight: 700; }

/* Deity hero banner */
.pa-deity-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7409B 100%);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(247, 64, 155, 0.25);
}

.pa-deity-photo {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    padding: 4px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.pa-deity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.pa-deity-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.22);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.pa-deity-name {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}
.pa-deity-name strong { font-weight: 800; }

@media (max-width: 600px) {
    .pa-deity-hero { flex-direction: column; text-align: center; }
}

/* Two prediction cards */
.pa-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.pa-cards.pa-cards-single { grid-template-columns: 1fr; }

@media (max-width: 700px) {
    .pa-cards { grid-template-columns: 1fr; }
}

.pa-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform .2s, box-shadow .2s;
}
.pa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.pa-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.pa-card-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.pa-card-en .pa-card-head { background: linear-gradient(135deg, #3F51B5, #5C6BC0); }
.pa-card-ta .pa-card-head { background: linear-gradient(135deg, #00897B, #26A69A); }

.pa-card-en { border-top: 3px solid #3F51B5; }
.pa-card-ta { border-top: 3px solid #00897B; }

.pa-prediction-en,
.pa-prediction-ta {
    margin: 0;
    padding: 18px 20px 22px;
    line-height: 1.7;
    color: #444;
}
.pa-prediction-ta {
    line-height: 1.9;
    font-family: 'Noto Sans Tamil', sans-serif;
}

/* ---------- Loading / error ---------- */
.pa-loading { text-align: center; padding: 40px; color: #C2410C; font-weight: 600; }
.pa-loading:after { content: '...'; animation: dots 1.5s steps(5, end) infinite; }

.pa-error {
    padding: 14px 16px;
    margin-top: 16px;
    background: #fdecea;
    border-left: 4px solid #e53935;
    border-radius: 8px;
    color: #c62828;
}

@keyframes dots {
    0%, 20%   { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40%       { color: #C2410C;       text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60%       {                       text-shadow: .25em 0 0 #C2410C,       .5em 0 0 rgba(0,0,0,0); }
    80%, 100% {                       text-shadow: .25em 0 0 #C2410C,       .5em 0 0 #C2410C; }
}
