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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Page Transitions */
.page {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    display: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Success Icon */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    animation: pulse 2s infinite;
}

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

/* Form Styling */
.question-group {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.question-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.question-group h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.question-group p {
    color: #666;
    margin-bottom: 16px;
}

/* Rating Groups */
.rating-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rating-item:hover {
    background: #f0f4ff;
    border-color: #667eea;
    transform: translateX(4px);
}

.rating-item input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

.rating-item input[type="radio"]:checked + .rating-text {
    color: #667eea;
    font-weight: 600;
}

.rating-text {
    font-size: 1rem;
    color: #333;
    transition: color 0.3s ease;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkbox-item:hover {
    background: #f0f4ff;
    border-color: #667eea;
    transform: translateX(4px);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-text {
    color: #667eea;
    font-weight: 600;
}

.checkbox-text {
    font-size: 1rem;
    color: #333;
    transition: color 0.3s ease;
}

/* Select Groups */
.select-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Textarea Groups */
.textarea-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.textarea-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.textarea-group textarea::placeholder {
    color: #999;
}

/* Submit Button */
.submit-group {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

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

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

.submit-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: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Review Request Styling */
.review-request {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px;
    margin-top: 20px;
    border: 2px solid #e9ecef;
}

.review-request h2 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.review-text-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.review-text-container h3 {
    color: #495057;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.review-text {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
    white-space: pre-wrap;
}

.copy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #218838;
}

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

.review-actions {
    text-align: center;
    margin: 24px 0;
}

.review-btn {
    display: inline-block;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.review-btn:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.review-note {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .page {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .rating-group {
        gap: 8px;
    }
    
    .rating-item,
    .checkbox-item {
        padding: 10px 12px;
    }
    
    .question-group {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .submit-btn {
        padding: 12px 24px;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .review-request {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .rating-item,
    .checkbox-item {
        padding: 8px 10px;
    }
    
    .rating-text,
    .checkbox-text {
        font-size: 0.9rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .submit-btn {
    background: #ccc;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Copy Success Animation */
.copy-success {
    background: #28a745 !important;
    animation: copySuccess 0.3s ease;
}

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