/* Jammi Scans Due Date Calculator Styles */
.jammi-calculator-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    overflow: hidden;
}

.jammi-calculator-header {
    background: linear-gradient(135deg, #FF61D2, #FE9090);
    color: white;
    text-align: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.jammi-calculator-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.jammi-calculator-header p {
    font-size: 1.1rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

.jammi-calculator-header:before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -100px;
    right: -50px;
    z-index: 1;
}

.jammi-calculator-header:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    bottom: -70px;
    left: -50px;
    z-index: 1;
}

.jammi-calculator-form {
    padding: 30px;
    background: white;
    position: relative;
}

.jammi-tabs {
    display: flex;
    margin-bottom: 25px;
    border-radius: 50px;
    background: #f7f7f7;
    padding: 5px;
    position: relative;
    z-index: 1;
}

.jammi-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    font-size: 1.9rem;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.jammi-tab-btn.active {
    background: linear-gradient(135deg, #FF61D2, #FE9090);
    color: white;
    box-shadow: 0 4px 15px rgba(254, 97, 210, 0.4);
}

.jammi-tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.jammi-tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.jammi-date-input,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.jammi-date-input:focus,
select:focus {
    border-color: #FF61D2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 97, 210, 0.2);
}

.jammi-calculate-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FF61D2, #FE9090);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.jammi-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(254, 97, 210, 0.4);
}

.jammi-calculate-btn:active {
    transform: translateY(0);
}

.jammi-calculate-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.jammi-calculate-btn:hover:before {
    left: 100%;
}

/* Results section */
.jammi-results {
    padding: 30px;
    background: #f9f9f9;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.due-date-highlight {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border: 2px solid #FF61D2;
}

.due-date-highlight p {
    margin: 5px 0;
    color: #666;
}

.due-date-highlight h2 {
    font-size: 1.8rem;
    color: #FF61D2;
    margin: 15px 0;
    font-weight: 700;
}

/* Pregnancy timeline */
.pregnancy-timeline {
    margin-top: 40px;
}

.pregnancy-timeline h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.5rem;
}

.timeline-container {
    position: relative;
}

.timeline-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
    border-left: 5px solid #ccc;
}

.timeline-section.animate {
    transform: translateY(0);
    opacity: 1;
}

.timeline-section:nth-child(1) {
    border-left-color: #FF9F9F;
}

.timeline-section:nth-child(2) {
    border-left-color: #9BBDF9;
}

.timeline-section:nth-child(3) {
    border-left-color: #A5D7A7;
}

.timeline-section.current-trimester {
    border-width: 8px;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.timeline-section h4 {
    margin-top: 0;
    color: #444;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.milestone {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 2px solid #eee;
}

.milestone-week {
    font-weight: 600;
    color: #FF61D2;
    display: block;
    margin-bottom: 5px;
}

.jammi-book-btn {
    display: inline-block;
    background: #FF61D2;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.jammi-book-btn:hover {
    background: #E651BC;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 81, 188, 0.3);
}

/* CTA section */
.jammi-cta {
    background: linear-gradient(135deg, #A878FF, #FE9090);
    padding: 30px;
    border-radius: 15px;
    color: white;
    margin-top: 40px;
}

.jammi-cta h3 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 20px;
}

.jammi-cta ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto 25px;
}

.jammi-cta li {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.jammi-contact-btn {
    display: block;
    background: white;
    color: #FF61D2;
    text-align: center;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    margin: 20px auto 0;
    max-width: 250px;
    transition: all 0.3s ease;
}

.jammi-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confetti-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
}

.confetti-animation.active {
    opacity: 1;
    animation: confetti-rain 5s linear forwards;
}

@keyframes confetti-rain {
    0% {
        background-image: 
            radial-gradient(circle at 20% 30%, #FF61D2 2px, transparent 2px),
            radial-gradient(circle at 40% 70%, #FFA07A 3px, transparent 3px),
            radial-gradient(circle at 60% 20%, #87CEFA 2px, transparent 2px),
            radial-gradient(circle at 80% 50%, #FFC0CB 3px, transparent 3px);
        background-size: 600px 600px;
        background-position: 0 -600px;
    }
    100% {
        background-image: 
            radial-gradient(circle at 20% 30%, #FF61D2 2px, transparent 2px),
            radial-gradient(circle at 40% 70%, #FFA07A 3px, transparent 3px),
            radial-gradient(circle at 60% 20%, #87CEFA 2px, transparent 2px),
            radial-gradient(circle at 80% 50%, #FFC0CB 3px, transparent 3px);
        background-size: 600px 600px;
        background-position: 0 600px;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .jammi-calculator-header h2 {
        font-size: 1.8rem;
    }
    
    .jammi-tab-btn {
        font-size: 0.8rem;
        padding: 10px 8px;
    }
    
    .due-date-highlight h2 {
        font-size: 1.5rem;
    }
    
    .jammi-cta li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .jammi-calculator-header h2 {
        font-size: 1.5rem;
    }
    
    .jammi-tab-btn {
        font-size: 0.7rem;
        padding: 8px 5px;
    }
}
