/**
 * Astroprasun Rudraksha Pro - Styles
 * Professional, modern design with spiritual aesthetics
 */

:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --accent-color: #c1121f;
    --dark-blue: #003049;
    --light-blue: #669bbc;
    --gold: #d4af37;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-secondary: linear-gradient(135deg, #003049 0%, #669bbc 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f7931e 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

/* Calculator Wrapper */
.astroprasun-calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Hero Section */
.calculator-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius);
    color: var(--white);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Form Container */
.calculator-form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.form-section-title {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--light-gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: var(--accent-color);
}

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 400;
    margin-top: 0.25rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Radio Group */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.radio-option {
    cursor: pointer;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.radio-option input[type="radio"]:checked + .radio-label {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.radio-icon {
    font-size: 2rem;
}

/* Info Box */
.form-info-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.info-content ul {
    margin: 0;
    padding-left: 1.25rem;
}

.info-content li {
    margin-bottom: 0.25rem;
    color: var(--dark-gray);
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-calculate {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Section */
.astroprasun-results {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-gold);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    color: var(--white);
}

.results-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.results-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Core Numbers Section */
.core-numbers-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.core-numbers-section h3 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.number-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.number-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.number-card.driver {
    background: linear-gradient(135deg, rgba(102, 155, 188, 0.1) 0%, rgba(0, 48, 73, 0.1) 100%);
    border-color: var(--light-blue);
}

.number-card.conductor {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    border-color: var(--primary-color);
}

.number-card.name {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    border-color: var(--gold);
}

.number-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.number-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.number-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0.5rem 0;
}

.number-planet {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.number-desc {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Recommendation Sections */
.recommendation-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendation-section h3 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Rudraksha Cards */
.rudraksha-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, rgba(247, 147, 30, 0.03) 100%);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.rudraksha-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.rudraksha-icon {
    font-size: 4rem;
}

.rudraksha-title h4 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rudraksha-deity {
    color: var(--gray);
    font-size: 0.95rem;
}

.rudraksha-details {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.detail-label {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--dark-blue);
    font-weight: 700;
}

/* Explanation Box */
.explanation-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.explanation-box h5 {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

.explanation-box p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 1.5rem;
}

.benefits-section h5 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.benefits-list li {
    padding: 0.75rem 1rem;
    background: var(--white);
    border-left: 4px solid var(--success);
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
}

.benefits-list li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Wearing Guide */
.wearing-guide {
    margin-bottom: 1.5rem;
}

.wearing-guide h5 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.wearing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.wearing-item {
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.wearing-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.wearing-value {
    display: block;
    font-size: 1rem;
    color: var(--dark-blue);
    font-weight: 700;
}

/* Mantra Box */
.mantra-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--gold);
    text-align: center;
}

.mantra-box h5 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.mantra-text {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 700;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.mantra-instruction {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Alert Boxes */
.alert-box {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-box.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--warning);
}

.alert-box.info {
    background: rgba(23, 162, 184, 0.1);
    border-color: var(--info);
}

.alert-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

/* Grid Strength */
.grid-strength,
.chakra-balance {
    margin-top: 1.5rem;
}

.strength-bar {
    height: 30px;
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    margin: 1rem 0;
}

.strength-fill {
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    color: var(--white);
    font-weight: 600;
    transition: width 1s ease;
}

.chakra-fill {
    background: var(--gradient-secondary);
}

.strength-rating {
    text-align: center;
    font-weight: 600;
    color: var(--dark-blue);
}

/* Summary Section */
.summary-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.summary-section h3 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.action-steps {
    display: grid;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h5 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--white);
    margin-bottom: 2rem;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--white);
    border: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-blue);
    border: 2px solid var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Combinations Grid */
.combinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.combo-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.combo-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.combo-card h5 {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

.combo-reason {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Disclaimer */
.disclaimer-section {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
}

/* Info Sections */
.info-sections {
    margin-top: 3rem;
}

.info-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.info-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon-large {
    font-size: 3rem;
}

.process-steps {
    display: grid;
    gap: 1.5rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* Priority Breakdown */
.priority-breakdown {
    display: grid;
    gap: 1rem;
}

.priority-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: center;
}

.priority-bar {
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.priority-label {
    color: var(--dark-gray);
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-top: 3rem;
}

.faq-title {
    text-align: center;
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.faq-question {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-answer {
    color: var(--dark-gray);
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .numbers-grid {
        grid-template-columns: 1fr;
    }
    
    .rudraksha-header {
        flex-direction: column;
        text-align: center;
    }
    
    .wearing-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media print {
    .calculator-hero,
    .calculator-form-container,
    .info-sections,
    .faq-section,
    .cta-section {
        display: none;
    }
    
    .astroprasun-results {
        page-break-inside: avoid;
    }
}
