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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    height: 100%;
}

/* Main Header */
.main-header {
    background-color: #04aea3;
    width: 100%;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-header .container-fluid {
    padding: 0;
    width: 100%;
}

.main-header .row {
    margin: 0;
    width: 100%;
}

.main-header .col-12 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

/* Main Footer */
.main-footer {
    background-color: #04aea3;
    width: 100%;
    padding: 20px;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.main-footer .container-fluid {
    padding: 0 15px;
}

.footer-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
}

.app-wrapper {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    padding: 20px;
    padding-top: 40px;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.first-question-container {
    padding-top: 60px;
}

.display-5 {
    font-size: 1.2rem;
}

/* Feedback Box - Removed */
.feedback-box {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.feedback-box:hover {
    box-shadow: none;
    transform: none;
}

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

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

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

/* Page Transition Effects - Removed to prevent blinking */

h1 {
    color: #2d3748;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    color: #718096;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Emoji Options */
.emoji-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 40px;
}

.emoji-option {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    background: #f7fafc;
    position: relative;
    overflow: hidden;
}

.emoji-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.emoji-option:hover::before {
    left: 100%;
}

.emoji-option:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #04aea3;
    background: white;
}

.emoji-option.selected {
    border-color: #04aea3;
    background: white;
    box-shadow: 0 10px 25px rgba(4, 174, 163, 0.3);
    transform: translateY(-5px) scale(1.05);
}

.emoji-option.selected .rating-image {
    transform: scale(1.15);
}

.emoji-option:active {
    transform: translateY(-5px) scale(0.98);
}

.emoji {
    font-size: 60px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rating-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.emoji-option:hover .rating-image {
    transform: scale(1.1);
}

.emoji-option p {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
}

/* Form Styles - Enhanced with Bootstrap */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-control,
.form-control-lg {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-control-lg {
    font-size: 1rem;
}

.form-control:focus,
.form-control-lg:focus {
    border-color: #04aea3;
    box-shadow: 0 0 0 0.25rem rgba(4, 174, 163, 0.25);
    transform: translateY(-1px);
}

.form-control:hover,
.form-control-lg:hover {
    border-color: #cbd5e0;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Form Validation Styles */
.form-control.is-valid {
    border-color: #04aea3;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2304aea3' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.form-control.is-valid:focus {
    border-color: #04aea3;
    box-shadow: 0 0 0 0.25rem rgba(4, 174, 163, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
    background-color: #fff5f5;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.checkbox-group.is-invalid .invalid-feedback {
    display: block;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #04aea3;
}

.was-validated .form-control:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback {
    display: block;
}

.text-danger {
    color: #dc3545 !important;
}

/* Checkbox Group */
.checkbox-group {
    margin: 30px 0;
    position: relative;
}

.checkbox-group.is-invalid {
    padding: 10px;
    border-radius: 8px;
    background-color: #fff5f5;
    border: 2px solid #dc3545;
}

.checkbox-group .invalid-feedback {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: #f7fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
    outline: none;
}

.checkbox-label:hover {
    background: white;
    border-color: transparent !important;
}

.checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: transparent !important;
}

.checkbox-label:active,
.checkbox-label:focus,
.checkbox-label:focus-within {
    border-color: transparent !important;
    outline: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #04aea3;
}

.checkbox-label input[type="checkbox"]:checked {
    accent-color: #04aea3;
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}

.checkbox-label span {
    flex: 1;
    color: #2d3748;
    font-size: 15px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.button-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-large {
    padding: 20px 30px;
    font-size: 18px;
}

.btn-primary {
    background: #04aea3;
    color: white;
}

.btn-primary:hover {
    background: #039a8f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 174, 163, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
}

/* Satisfied Question Buttons - Header Color */
.btn.btn-recommend-yes {
    background-color: #04aea3 !important;
    color: white !important;
    border: 2px solid #04aea3 !important;
}

.btn.btn-recommend-yes:hover,
.btn.btn-recommend-yes:focus,
.btn.btn-recommend-yes:active {
    background-color: #039a8f !important;
    border-color: #039a8f !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 174, 163, 0.3) !important;
}

.btn.btn-recommend-no {
    background-color: #e2e8f0 !important;
    color: #4a5568 !important;
    border: 2px solid #e2e8f0 !important;
}

.btn.btn-recommend-no:hover,
.btn.btn-recommend-no:focus,
.btn.btn-recommend-no:active {
    background-color: #cbd5e0 !important;
    color: #4a5568 !important;
    border-color: #cbd5e0 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.btn-outline {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    border-color: #04aea3;
    color: #04aea3;
    transform: translateY(-2px);
}

/* Success and Info Icons */
.success-icon,
.info-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 50px;
    background: linear-gradient(135deg, #04aea3 0%, #039a8f 100%);
    color: white;
}

.text-center {
    text-align: center;
}

/* Thank You Message */
.thank-you-message,
.customer-care-message {
    margin: 30px 0;
    padding: 25px;
    background: #f7fafc;
    border-radius: 10px;
}

.thank-you-message p,
.customer-care-message p {
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 15px;
}

.contact-info {
    margin-top: 30px;
    padding: 20px;
    background: #fff5f5;
    border-left: 4px solid #04aea3;
    border-radius: 5px;
}

.contact-info p {
    margin-bottom: 5px;
    color: #2d3748;
}

.contact-info a {
    color: #04aea3;
    font-weight: 600;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* City Examples */
.city-examples {
    margin-top: 30px;
    padding: 25px;
    background: #f7fafc;
    border-radius: 10px;
}

.city-examples h3 {
    margin-bottom: 15px;
    color: #2d3748;
    font-size: 18px;
}

.city-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background: white;
    color: #04aea3;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid #04aea3;
    font-weight: 600;
    transition: all 0.3s ease;
}

.city-link:hover {
    background: #04aea3;
    color: white;
    transform: translateY(-2px);
}

code {
    background: #2d3748;
    color: #f7fafc;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive Design */
/* Mobile - Horizontal layout with smaller padding */
@media (max-width: 767px) {
    .emoji-option {
        padding: 15px 8px;
        min-height: auto;
    }
    
    .rating-image {
        width: 50px;
        height: 50px;
    }
    
    .rating-label {
        font-size: 12px;
    }
    
    .emoji {
        margin-bottom: 8px;
    }
}

/* Tablet - Horizontal layout */
@media (min-width: 768px) and (max-width: 991px) {
    .emoji-option {
        padding: 25px 15px;
    }
    
    .rating-image {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 12px 15px;
    }
    
    .main-logo {
        max-height: 40px;
        max-width: 250px;
    }
    
    .main-footer {
        padding: 15px;
    }
    
    .footer-text {
        font-size: 13px;
    }
    
    .feedback-box {
        padding: 0;
    }
    
    .display-5 {
        font-size: 1.2rem;
    }
    
    .emoji-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .emoji-option {
        padding: 15px 8px;
    }
    
    .rating-image {
        width: 50px;
        height: 50px;
    }
    
    .rating-label {
        font-size: 11px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .d-md-flex {
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 12px;
    }
    
    .main-logo {
        max-height: 35px;
        max-width: 200px;
    }
    
    .main-footer {
        padding: 12px;
    }
    
    .footer-text {
        font-size: 12px;
    }
    
    body {
        padding: 0;
    }
    
    .app-wrapper {
        padding: 15px;
        padding-top: 30px;
    }
    
    .first-question-container {
        padding-top: 40px;
    }
    
    .feedback-box {
        padding: 0;
    }
    
    .display-5 {
        font-size: 1.2rem;
    }
    
    .text-muted {
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .rating-image {
        width: 60px;
        height: 60px;
    }
}

