* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin: 60px 0 40px;
}

.logo {
    font-size: 48px;
    font-weight: 300;
    color: #4285f4;
    margin-bottom: 10px;
}

.tagline {
    font-size: 18px;
    color: #666;
}

/* Search Section */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.form-group input[type="date"],
.form-group select {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

/* Enhanced styling for country select */
.form-group select {
    background-color: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    appearance: none;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Better spacing for long country list */
.form-group select option {
    padding: 8px 12px;
    font-size: 16px;
}

/* Optgroup styling */
.form-group select optgroup {
    font-weight: bold;
    font-style: normal;
    background-color: #f8f9fa;
    color: #495057;
    padding: 8px 0;
}

.form-group select optgroup option {
    font-weight: normal;
    padding-left: 16px;
}

/* Popular countries highlighting */
.form-group select option[value="US"],
.form-group select option[value="GB"],
.form-group select option[value="CA"],
.form-group select option[value="AU"],
.form-group select option[value="DE"],
.form-group select option[value="FR"],
.form-group select option[value="JP"],
.form-group select option[value="CN"],
.form-group select option[value="IN"],
.form-group select option[value="BR"] {
    font-weight: 600;
}

.form-group input[type="date"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #4285f4;
}

.spill-button {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.spill-button:hover {
    background-color: #357ae8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Results Section */
.results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.calendar-year {
    text-align: center;
    margin-bottom: 20px;
}

.calendar-year h3 {
    font-size: 32px;
    font-weight: bold;
    color: #4285f4;
    margin: 0;
}

.date-dial {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.dial-nav {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s;
}

.dial-nav:hover {
    background-color: #e8eaed;
}

.dial-display {
    display: flex;
    gap: 15px;
    margin: 0 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.date-card {
    min-width: 120px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.date-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.date-card.conception-date {
    background-color: #4285f4;
    color: white;
    transform: scale(1.1);
}

.date-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.date-card p {
    font-size: 12px;
    margin-top: 5px;
}

.baby-type-display {
    text-align: center;
    margin: 40px 0;
}

.baby-type-display h2 {
    font-size: 36px;
    color: #4285f4;
    margin-bottom: 15px;
}

.baby-type-display p {
    font-size: 18px;
    color: #666;
}

.secondary-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 40px auto;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
}

.secondary-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    transition: left 0.3s;
}

.secondary-button span {
    position: relative;
    z-index: 1;
}

.secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.secondary-button:hover:before {
    left: 0;
}

.secondary-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

/* Social Sharing */
.social-sharing {
    margin: 40px 0;
    text-align: center;
}

.social-sharing h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-btn:active {
    transform: translateY(-1px);
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #000000;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.copy-link {
    background-color: #6c757d;
}

.share-message {
    margin-top: 15px;
    font-size: 14px;
    color: #4285f4;
    opacity: 0;
    transition: opacity 0.3s;
    height: 20px;
}

.share-message.show {
    opacity: 1;
}

/* Affiliate Section */
.affiliate-container {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 16px;
    margin-top: 40px;
    text-align: center;
}

.affiliate-container h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.gift-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gift-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    display: block;
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #4285f4;
}

.gift-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.gift-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.gift-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Email Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.popup-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.popup-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

#email-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

#email-form button {
    width: 100%;
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#email-form button:hover {
    background-color: #357ae8;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 36px;
    }
    
    .dial-display {
        gap: 10px;
        justify-content: center;
        margin: 0 10px;
    }
    
    .date-card {
        min-width: 100px;
        padding: 15px;
        flex-shrink: 0;
    }
    
    .date-card.conception-date {
        transform: scale(1.05);
        margin: 0 5px;
    }
    
    .baby-type-display h2 {
        font-size: 28px;
    }
    
    .social-sharing h3 {
        font-size: 20px;
    }
    
    .share-buttons {
        gap: 12px;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
    }
    
    .share-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Ensure results section is centered on mobile */
    .results-container {
        padding: 20px 10px;
    }
    
    .date-dial {
        padding: 20px 0;
        justify-content: center;
    }
}

/* Footer */
footer {
    margin-top: 80px;
    padding: 30px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e8eaed;
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.footer-content a {
    color: #4285f4;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #357ae8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content p {
        font-size: 11px;
    }
}