/* =============================================================
   Astroprasun Rudraksha Pro - Styles v4.0.0
   Mobile-first, no date-picker toggle needed
============================================================= */

/* --- Reset scoped to our wrapper --- */
.arp-wrapper *,
.arp-wrapper *::before,
.arp-wrapper *::after {
    box-sizing: border-box;
}

/* --- Wrapper --- */
.arp-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #2d2d2d;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 40px;
    line-height: 1.6;
}

/* =====================
   Hero
===================== */
.arp-hero {
    background: linear-gradient(135deg, #4b1a8f 0%, #7b2ff7 60%, #a855f7 100%);
    border-radius: 16px;
    padding: 36px 24px 32px;
    text-align: center;
    color: #fff;
    margin-bottom: 28px;
}
.arp-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.25;
}
.arp-hero__subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    opacity: 0.9;
    margin: 0 0 18px;
}
.arp-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.arp-hero__tags span {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* =====================
   Form Box
===================== */
.arp-form-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    padding: 28px 24px;
    margin-bottom: 28px;
}

/* =====================
   Fields
===================== */
.arp-field {
    margin-bottom: 22px;
}
.arp-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #2d2d2d;
}
.arp-label small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}
.arp-required {
    color: #e53e3e;
    margin-left: 2px;
}
.arp-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #2d2d2d;
    background: #fff;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.arp-input:focus {
    border-color: #7b2ff7;
    box-shadow: 0 0 0 3px rgba(123,47,247,0.12);
}
.arp-input.arp-dob-input {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 6px;
}
/* hide number spinners */
.arp-dob-input::-webkit-inner-spin-button,
.arp-dob-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.arp-dob-input[type=number] { -moz-appearance: textfield; }

/* =====================
   DOB Grid
===================== */
.arp-dob-grid {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.arp-dob-item {
    flex: 1;
    min-width: 0;
}
.arp-dob-item.arp-dob-year {
    flex: 1.6;
}
.arp-dob-sep {
    font-size: 1.4rem;
    font-weight: 700;
    color: #aaa;
    padding-bottom: 12px;
    flex-shrink: 0;
}
.arp-dob-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 5px;
    text-align: center;
}
.arp-dob-preview {
    margin-top: 10px;
    font-size: 0.88rem;
    color: #7b2ff7;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.04em;
}

/* =====================
   Gender
===================== */
.arp-gender-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.arp-gender-option {
    cursor: pointer;
    flex: 1;
    min-width: 90px;
}
.arp-gender-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.arp-gender-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    background: #fafafa;
}
.arp-gender-option input:checked + .arp-gender-btn,
.arp-gender-btn--active {
    border-color: #7b2ff7;
    background: #f3eeff;
    color: #7b2ff7;
}
.arp-gender-btn:hover {
    border-color: #a855f7;
    background: #f9f5ff;
}

/* =====================
   Info Box
===================== */
.arp-info-box {
    display: flex;
    gap: 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 22px;
    font-size: 0.9rem;
}
.arp-info-box__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.arp-info-box__content ul {
    margin: 6px 0 0 0;
    padding-left: 18px;
}
.arp-info-box__content li {
    margin-bottom: 4px;
    color: #374151;
}

/* =====================
   Submit Button
===================== */
.arp-submit-row {
    text-align: center;
}
.arp-btn-calculate {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4b1a8f, #7b2ff7);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 44px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 18px rgba(123,47,247,0.35);
    width: 100%;
    justify-content: center;
}
.arp-btn-calculate:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}
.arp-btn-calculate:disabled {
    cursor: not-allowed;
}
.arp-btn-icon { font-size: 1.2rem; }

@media (min-width: 480px) {
    .arp-btn-calculate {
        width: auto;
        min-width: 260px;
    }
}

/* =====================
   Loading
===================== */
.arp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    color: #7b2ff7;
    font-weight: 600;
}
.arp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9d5ff;
    border-top-color: #7b2ff7;
    border-radius: 50%;
    animation: arp-spin 0.8s linear infinite;
}
@keyframes arp-spin {
    to { transform: rotate(360deg); }
}

/* =====================
   Error
===================== */
.arp-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
    border-left: 4px solid #e53e3e;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 0.93rem;
}

/* =====================
   Info Sections
===================== */
.arp-info-sections {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}
.arp-info-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 22px 20px;
}
.arp-info-card__icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.arp-info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #4b1a8f;
}
.arp-info-card p {
    margin: 0;
    font-size: 0.93rem;
    color: #555;
}

/* Steps */
.arp-steps { display: flex; flex-direction: column; gap: 14px; }
.arp-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.arp-step__num {
    background: linear-gradient(135deg, #4b1a8f, #7b2ff7);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.arp-step > div strong { display: block; margin-bottom: 2px; }
.arp-step > div p { margin: 0; font-size: 0.88rem; color: #666; }

/* Priority bars */
.arp-priority { display: flex; flex-direction: column; gap: 12px; }
.arp-priority__row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.arp-priority__bar {
    background: linear-gradient(90deg, #7b2ff7, #a855f7);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 5px 8px;
    white-space: nowrap;
    min-width: 38px;
}
.arp-priority__row span {
    font-size: 0.85rem;
    color: #555;
}

/* =====================
   FAQ
===================== */
.arp-faq {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 22px 20px;
}
.arp-faq__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4b1a8f;
    margin: 0 0 18px;
}
.arp-faq__grid { display: grid; gap: 16px; }
.arp-faq__item h4 {
    font-size: 0.97rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #2d2d2d;
}
.arp-faq__item p {
    font-size: 0.88rem;
    color: #555;
    margin: 0;
}

/* =====================
   Results (result-template.php styles)
===================== */
.astroprasun-results {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    padding: 24px 20px;
    margin-bottom: 28px;
}
.results-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0e6ff;
}
.results-title {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    font-weight: 800;
    color: #4b1a8f;
    margin: 0 0 6px;
}
.results-subtitle { color: #666; margin: 0; }

/* Core numbers */
.core-numbers-section h3 { font-weight: 700; color: #4b1a8f; margin: 0 0 14px; }
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.number-card {
    background: linear-gradient(135deg, #f3eeff, #e9d5ff);
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    border: 1px solid #d8b4fe;
}
.number-icon { font-size: 1.5rem; margin-bottom: 4px; }
.number-label { font-size: 0.72rem; font-weight: 700; color: #6b21a8; text-transform: uppercase; letter-spacing: 0.04em; }
.number-value { font-size: 2.2rem; font-weight: 900; color: #4b1a8f; line-height: 1; margin: 4px 0; }
.number-planet { font-size: 0.8rem; font-weight: 600; color: #7b2ff7; }
.number-desc { font-size: 0.72rem; color: #666; margin-top: 4px; }

/* Recommendation sections */
.recommendation-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0e6ff;
}
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4b1a8f, #7b2ff7);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}
.recommendation-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4b1a8f;
    margin: 0 0 14px;
}
.rudraksha-card {
    background: #fafafa;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 18px 16px;
}
.rudraksha-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.rudraksha-icon { font-size: 1.8rem; }
.rudraksha-title h4 { margin: 0 0 3px; font-size: 1.05rem; font-weight: 700; color: #2d2d2d; }
.rudraksha-deity { margin: 0; font-size: 0.85rem; color: #7b2ff7; font-style: italic; }

.rudraksha-details { margin-bottom: 14px; }
.detail-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.detail-label { font-weight: 700; color: #555; min-width: 130px; flex-shrink: 0; }
.detail-value { color: #2d2d2d; }

.explanation-box {
    background: #f0e6ff;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.explanation-box h5 { margin: 0 0 6px; font-size: 0.9rem; font-weight: 700; color: #4b1a8f; }
.explanation-box p { margin: 0 0 6px; font-size: 0.88rem; color: #374151; }

.benefits-section h5, .wearing-guide h5, .mantra-box h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4b1a8f;
    margin: 0 0 8px;
}
.benefits-list {
    padding-left: 18px;
    margin: 0 0 14px;
}
.benefits-list li {
    font-size: 0.88rem;
    color: #374151;
    margin-bottom: 4px;
}

.wearing-guide { margin-bottom: 14px; }
.wearing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.wearing-item {
    background: #fafafa;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.84rem;
}
.wearing-label { font-weight: 700; color: #555; display: block; }
.wearing-value { color: #2d2d2d; }

.mantra-box {
    background: linear-gradient(135deg, #4b1a8f, #7b2ff7);
    color: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}
.mantra-box h5 { color: #fff; margin: 0 0 8px; }
.mantra-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
}
.mantra-instruction { font-size: 0.8rem; opacity: 0.85; margin: 0; }

/* Alert boxes */
.alert-box {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.88rem;
}
.alert-box.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.alert-box.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.alert-box strong { display: block; margin-bottom: 4px; }
.alert-box p { margin: 0 0 4px; }

.remedy-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.88rem;
    color: #14532d;
}
.remedy-box h5 { margin: 0 0 6px; font-size: 0.9rem; color: #166534; font-weight: 700; }
.remedy-text { font-weight: 700; margin-bottom: 6px; }

/* Strength bar */
.strength-bar {
    height: 12px;
    background: #e9d5ff;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}
.strength-fill {
    height: 100%;
    background: linear-gradient(90deg, #7b2ff7, #a855f7);
    border-radius: 6px;
    transition: width 0.8s ease;
}
.strength-rating { font-size: 0.88rem; font-weight: 600; color: #555; margin: 0; }

/* Conflict card */
.conflict-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: 0.88rem;
}
.conflict-type {
    color: #991b1b;
    margin: 0 0 8px;
    font-size: 0.95rem;
}

/* Combinations */
.combinations-grid {
    display: grid;
    gap: 12px;
}
.combo-card {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.88rem;
}
.combo-card h5 { margin: 0 0 6px; color: #4b1a8f; }
.combo-reason { color: #7c3aed; font-style: italic; margin: 4px 0 0; }

/* Action steps */
.action-steps { display: flex; flex-direction: column; gap: 14px; }
.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.step-number {
    background: linear-gradient(135deg, #4b1a8f, #7b2ff7);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.step-content h5 { margin: 0 0 4px; font-size: 0.97rem; color: #2d2d2d; }
.step-content p { margin: 0; font-size: 0.88rem; color: #555; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4b1a8f, #7b2ff7);
    color: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 20px;
}
.cta-section h3 { margin: 0 0 8px; font-size: 1.2rem; }
.cta-section p { margin: 0 0 18px; opacity: 0.9; font-size: 0.93rem; }
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    border: 2px solid transparent;
}
.btn:hover { opacity: 0.88; }
.btn-primary  { background: #fff; color: #7b2ff7; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline  { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* Disclaimer */
.disclaimer-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Loshu, chakra sections */
.loshu-card, .chakra-card {
    background: #fafafa;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}
.grid-strength h5, .chakra-balance h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4b1a8f;
    margin: 0 0 8px;
}
.chakra-info h5 { margin: 0 0 6px; font-weight: 700; color: #4b1a8f; }
.chakra-info p { font-size: 0.88rem; margin: 0 0 4px; }

/* =====================
   Responsive: Tablet+
===================== */
@media (min-width: 600px) {
    .arp-form-box { padding: 36px 32px; }
    .arp-info-sections { grid-template-columns: 1fr 1fr; }
    .arp-faq__grid { grid-template-columns: 1fr 1fr; }
    .combinations-grid { grid-template-columns: 1fr 1fr; }
    .astroprasun-results { padding: 30px 28px; }
    .numbers-grid { gap: 16px; }
    .wearing-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
    .arp-info-sections { grid-template-columns: repeat(3, 1fr); }
    .arp-dob-grid { gap: 10px; }
}

/* =====================
   Print
===================== */
@media print {
    .arp-hero, .arp-form-box, .arp-info-sections, .arp-faq,
    .cta-section, .arp-submit-row { display: none !important; }
    .astroprasun-results { box-shadow: none; }
}
