/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    /* Added for smoother font rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header Styles */
.header {
    text-align: center;
    padding: 50px 0 30px;
    color: white;
}

.header-content {
    animation: fadeInUp 1s ease-out;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.main-title i {
    color: #ff6b6b;
    margin-right: 15px;
    animation: heartbeat 2s ease-in-out infinite;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 0 0 0;
}

/* Form Section */
.form-section {
    margin-bottom: 60px;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s ease-out;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

/* Form Styles */
.girlfriend-form {
    display: grid;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 10px;
    color: #555;
    font-size: 1.1rem;
}

.form-label i {
    margin-right: 10px;
    color: #667eea;
    width: 20px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    /* Ensure consistent appearance across mobile browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-input:hover,
.form-select:hover {
    border-color: #667eea;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    /* Ensure the entire item is tappable */
    -webkit-tap-highlight-color: transparent;
}

.checkbox-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent checkmark from shrinking on small screens */
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-item input[type="checkbox"]:checked ~ span:last-child {
    color: #667eea;
    font-weight: 500;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Ensure button is fully tappable and prevents double-tap zoom */
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

.submit-btn i {
    font-size: 1.1rem;
}

/* Results Section */
.results-section {
    animation: fadeIn 0.8s ease-out;
}

.results-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.compatibility-score {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.score-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Profile Cards */
.results-content {
    display: grid;
    gap: 30px;
}

.profile-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    border-left: 5px solid #667eea;
}

.profile-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.profile-title::before {
    content: '👤';
    margin-right: 10px;
    font-size: 1.3rem;
}

.girlfriend-profile .profile-title::before {
    content: '💕';
}

.profile-details {
    display: grid;
    gap: 15px;
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e1e5e9;
    /* Allow text to wrap if it's too long */
    flex-wrap: wrap;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item-label {
    font-weight: 500;
    color: #666;
    min-width: 120px;
    /* Ensure label doesn't get too small */
    flex-shrink: 0;
}

.profile-item-value {
    color: #333;
    font-weight: 400;
    /* Allow value to take up remaining space */
    flex-grow: 1;
}

/* Compatibility Analysis */
.compatibility-analysis,
.relationship-tips {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    border-left: 5px solid #4ecdc4;
}

.analysis-title,
.tips-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.analysis-title::before {
    content: '🔍';
    margin-right: 10px;
    font-size: 1.3rem;
}

.tips-title::before {
    content: '💡';
    margin-right: 10px;
    font-size: 1.3rem;
}

.analysis-content,
.tips-content {
    line-height: 1.8;
    color: #555;
}

.analysis-item,
.tip-item {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

/* Share Section */
.share-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.share-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

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

.share-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    /* Ensure button is fully tappable */
    -webkit-tap-highlight-color: transparent;
}

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

.twitter-btn {
    background: #1da1f2;
}

.copy-btn {
    background: #28a745;
}

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

/* Action Buttons */
.action-buttons {
    text-align: center;
    margin-top: 30px;
}

.try-again-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* Ensure button is fully tappable */
    -webkit-tap-highlight-color: transparent;
}

.try-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: white;
    opacity: 0.8;
}

.footer-content p {
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.9rem;
    font-style: italic;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .form-container,
    .results-container {
        padding: 25px;
        border-radius: 15px;
    }
    
    .section-title,
    .results-title {
        font-size: 2rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr; /* Stack items vertically on smaller screens */
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 2rem;
    }

    .profile-item {
        /* Allow label and value to stack on very small screens if needed */
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 15px; /* Add more space between stacked items */
    }

    .profile-item-label {
        margin-bottom: 5px; /* Space between label and value when stacked */
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
        margin-bottom: 15px; /* Slightly less margin for tighter spacing */
    }
    
    .subtitle {
        font-size: 1rem; /* Make subtitle a bit smaller for tight spaces */
    }
    
    .header {
        padding: 40px 0 30px; /* Reduce header padding */
    }

    .form-container,
    .results-container {
        padding: 20px;
    }
    
    .section-title,
    .results-title {
        font-size: 1.8rem;
        margin-bottom: 30px; /* Adjust margin */
    }
    
    .checkbox-item {
        padding: 10px 12px;
    }

    .form-input,
    .form-select,
    .submit-btn,
    .try-again-btn {
        font-size: 1rem; /* Slightly smaller font size for inputs and buttons */
        padding: 12px 15px; /* Adjust padding for inputs and buttons */
    }

    .form-label {
        font-size: 1rem; /* Smaller label font size */
    }

    .profile-card,
    .compatibility-analysis,
    .relationship-tips {
        padding: 20px; /* Reduce padding inside these sections */
    }

    .profile-title,
    .analysis-title,
    .tips-title {
        font-size: 1.3rem; /* Smaller titles in results */
    }

    .share-title {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .header,
    .share-section,
    .action-buttons,
    .footer {
        display: none;
    }
    
    .results-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* SEO Content Section Styles */
.seo-content-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
    margin-top: 60px;
}

.seo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    gap: 40px;
}

/* SEO Card Styles */
.seo-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.seo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.seo-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.seo-card-header i {
    font-size: 2rem;
    opacity: 0.9;
}

.seo-card-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.seo-card-content {
    padding: 40px;
    line-height: 1.8;
    color: #555;
}

.seo-card-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.seo-card-content p:last-child {
    margin-bottom: 0;
}

.seo-card-content strong {
    color: #667eea;
    font-weight: 600;
}

/* Step Guide Styles */
.step-guide {
    margin-top: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: #f0f2f5;
    transform: translateX(5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.step-content h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-content p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

/* Benefits Grid Styles */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-item:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.benefit-icon i {
    color: white;
    font-size: 1.5rem;
}

.benefit-content h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-content p {
    color: #666;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ Styles */
.faq-container {
    margin-top: 30px;
}

.faq-item {
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.faq-question {
    padding: 25px 30px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
    background: #667eea;
    color: white;
}

.faq-question:hover .faq-icon {
    color: white;
}

.faq-icon {
    color: #667eea;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
}

.faq-answer.active {
    max-height: 500px;
    padding: 25px 30px;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* Responsive Design for SEO Content */
@media (max-width: 768px) {
    .seo-content-section {
        padding: 60px 0;
        margin-top: 40px;
    }
    
    .seo-container {
        padding: 0 15px;
        gap: 30px;
    }
    
    .seo-card-header {
        padding: 25px 30px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .seo-card-header h2 {
        font-size: 1.5rem;
    }
    
    .seo-card-content {
        padding: 30px 25px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-number {
        align-self: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .benefit-icon {
        align-self: center;
    }
    
    .faq-question {
        padding: 20px 25px;
        font-size: 1rem;
    }
    
    .faq-answer.active {
        padding: 20px 25px;
    }
}

@media (max-width: 480px) {
    .seo-card-header {
        padding: 20px 25px;
    }
    
    .seo-card-header h2 {
        font-size: 1.3rem;
    }
    
    .seo-card-content {
        padding: 25px 20px;
    }
    
    .seo-card-content p {
        font-size: 1rem;
    }
    
    .step-item {
        padding: 20px;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .benefit-item {
        padding: 20px;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
    }
    
    .benefit-icon i {
        font-size: 1.3rem;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 0.95rem;
    }
    
    .faq-answer.active {
        padding: 18px 20px;
    }
}

/* Animation for FAQ toggle */
@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

.faq-answer.active {
    animation: slideDown 0.4s ease-out;
}



/* Beautiful mm Buttons with Smooth Hover Effects */
        .mm-buttons-section {
            background: transparent;
            padding: 3rem 0;
            margin: 2rem 0;
        }
        
        .mm-buttons-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
        }
        
        .mm-buttons-title {
            text-align: center;
            color: #FFD700;
            font-size: 2.5rem;
            margin-bottom: 1rem;
            font-weight: 700;
        }
        
        .mm-buttons-subtitle {
            text-align: center;
            color: #FFFFFF;
            font-size: 1.2rem;
            margin-bottom: 3rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .mm-buttons-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px 30px;
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .mm-button {
            background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
            color: #333;
            padding: 18px 25px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            position: relative;
            overflow: hidden;
            transition: all 0.4s ease;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
            font-family: Arial, sans-serif;
            box-sizing: border-box;
        }
        
        .mm-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
            transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: 0;
            border-radius: 50px;
        }
         .mm-button:hover::before {
            left: 0;
        }
        
        .mm-button:hover {
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
        }
        
       .mm-button span {
    color: #000000; /* Black text by default */
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.mm-button:hover span {
    color: #FFFFFF; /* White text on hover */
}

        
        .mm-button .arrow {
            margin-left: 15px;
            font-size: 18px;
            line-height: 1;
            transition: transform 0.3s ease;
        }
        
        .mm-button:hover .arrow {
            transform: translateX(5px);
        }
        
        /* Responsive design for mobile devices */
        @media (max-width: 768px) {
            .mm-buttons-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 0 10px;
            }
            
            .mm-button {
                padding: 15px 20px;
                font-size: 14px;
            }
            
            .mm-buttons-title {
                font-size: 2rem;
            }
            
            .mm-buttons-subtitle {
                font-size: 1rem;
            }
            
            .mm-buttons-container {
                padding: 0 20px;
            }
        }
        
        @media (max-width: 480px) {
            .mm-button {
                padding: 12px 18px;
                font-size: 13px;
            }
            
            .mm-buttons-container {
                padding: 0 15px;
            }
        }