@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F2819B;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Card Styles */
.card {
    background: #FAF1E2;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

/* Logo/Icon */
.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 60px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Typography */
h1 {
    font-size: 2rem;
    text-align: center;
    color: #2d2d2d;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #555;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.7;
    font-weight: 500;
    padding: 0 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Submit Main Button with Zoom Animation */
.btn-submit-main {
    background: #F2819B;
    color: #fff;
    animation: zoomPulse 1.5s ease-in-out infinite;
}

.btn-submit-main:hover {
    background: #e06b85;
    box-shadow: 0 10px 30px rgba(242, 129, 155, 0.4);
}

@keyframes zoomPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    margin-bottom: 12px;
    animation: shake 0.5s ease-in-out infinite;
}

.btn-whatsapp:hover {
    background: #20bd5a;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.btn-copy {
    background: #f0f0f0;
    color: #333;
    margin-bottom: 12px;
}

.btn-copy:hover {
    background: #e0e0e0;
}

.btn-download {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    margin-bottom: 12px;
}

.btn-submit {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 25px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 5px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #666;
}

.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress Bars */
.progress-item {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-label span:first-child {
    color: #444;
}

.progress-label span:last-child {
    color: #667eea;
}

.progress-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.progress-fill.confidence { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); }
.progress-fill.smile { background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%); }
.progress-fill.cuteness { background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); }
.progress-fill.kindness { background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%); }
.progress-fill.love { background: linear-gradient(90deg, #fa709a 0%, #fee140 100%); }

/* Rating Items for Results */
.rating-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-item .rating-label {
    min-width: 120px;
    font-weight: 600;
    color: #444;
    margin-bottom: 0;
}

.rating-bar {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

#confidence-bar { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); }
#smile-bar { background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%); }
#cuteness-bar { background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); }
#kindness-bar { background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%); }
#love-bar { background: linear-gradient(90deg, #fa709a 0%, #fee140 100%); }

.rating-value {
    min-width: 45px;
    text-align: right;
    font-weight: 700;
    color: #667eea;
}

/* Stats */
.stats {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 20px;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Rating Options */
.rating-group {
    margin-bottom: 25px;
}

.rating-label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 12px;
    font-size: 1rem;
}

.rating-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-option {
    flex: 1;
    min-width: 50px;
}

.rating-option input {
    display: none;
}

.rating-option label {
    display: block;
    padding: 12px 8px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rating-option input:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
}

.rating-option label:hover {
    border-color: #667eea;
}

/* Instructions */
.instructions {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.instructions h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #333;
}

.instructions ul {
    list-style: none;
}

.instructions li {
    padding: 8px 0;
    color: #555;
    font-size: 0.9rem;
}

.instructions li::before {
    content: "✔";
    color: #25D366;
    margin-right: 10px;
}

/* Link Display */
.link-box {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    word-break: break-all;
    font-size: 0.85rem;
    color: #667eea;
    text-align: center;
    font-weight: 500;
}

/* Thank You Page */
.thank-you {
    text-align: center;
}

.thank-you-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.anonymous-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 20px;
    text-align: center;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
}

/* Error Message */
.error {
    background: #ffe6e6;
    color: #d63031;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9rem;
}

/* Username Display */
.username-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

/* Question Cards - One by One */
.questions-container {
    position: relative;
}

.question-card {
    display: none !important;
    animation: slideIn 0.4s ease;
}

.question-card.active {
    display: block !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-number {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    font-weight: 500;
}

.question-title {
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.4;
}

.rating-options-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.rating-option-card {
    position: relative;
}

.rating-option-card input {
    display: none;
}

.rating-option-card label {
    display: block;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.rating-option-card input:checked + label {
    background: linear-gradient(135deg, #F2819B 0%, #e06b85 100%);
    color: #fff;
    border-color: #F2819B;
    transform: scale(1.02);
}

.rating-option-card label:hover {
    border-color: #F2819B;
    background: #fff5f7;
}

.btn-group {
    display: flex;
    gap: 12px;
}

.btn-next {
    background: linear-gradient(135deg, #F2819B 0%, #e06b85 100%);
    color: #fff;
    flex: 1;
}

.btn-back {
    background: #f0f0f0;
    color: #666;
    flex: 0.5;
}

.btn-back:hover {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .rating-option label {
        padding: 10px 6px;
        font-size: 0.9rem;
    }
}

/* Share Section Title */
.share-title {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

/* Divider */
.divider {
    height: 1px;
    background: #e0e0e0;
    margin: 25px 0;
}

/* Button Icons */
.btn-icon {
    margin-right: 8px;
}
