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

html,
body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    width: 100%;
    max-width: 600px;
    min-height: auto;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}

@media (max-width: 760px), (max-height: 760px) {
    html,
    body {
        overflow: auto !important;
        min-height: auto;
    }

    .container {
        min-height: auto;
        justify-content: flex-start;
        overflow: visible !important;
        padding: 16px 14px;
    }

    .feedback-container,
    .form-container,
    .rating-container,
    .review-container,
    .thankyou-container {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Home Page */
.home-container {
    text-align: center;
    padding: 0;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hotel-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.hotel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}

.hotel-subtitle {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 60px;
}

.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.arrow-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #0066cc;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.arrow-button:active {
    transform: scale(0.95);
}

.arrow-icon {
    width: 60px;
    height: 60px;
    color: #ffffff;
    stroke: white;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 102, 204, 0.6);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

.arrow-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.arrow-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.arrow-text-spanish {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666666;
    margin: 0;
}

.spanish-text {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666666;
    margin-top: 8px;
}

.spanish-text-button {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
}

.feedback-container .back-button .spanish-text-button {
    color: #444444;
}

/* Form Container */
.form-container {
    background-color: #ffffff;
    padding: 28px 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 560px;
}

.form-container h2 {
    font-size: 1.7rem;
    color: #000000;
    margin-bottom: 22px;
    text-align: center;
}

.room-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.room-input {
    padding: 16px;
    font-size: 1.1rem;
    border: 2px solid #0066cc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.room-input:focus {
    border-color: #0052a3;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.room-hint {
    font-size: 0.85rem;
    margin-top: 8px;
    transition: all 0.3s ease;
    min-height: 1.2rem;
    color: #666;
}

.form-error {
    min-height: 1.25rem;
    color: #d9534f;
    font-size: 0.95rem;
    margin-top: -6px;
}

.submit-button {
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.submit-button:active {
    background-color: #0052a3;
}

/* Inline buttons for room form */
.button-row {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-top: 20px;
}

.back-button-inline,
.submit-button-inline {
    flex: 0 1 calc(50% - 12.5px);
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.back-button-inline:active,
.submit-button-inline:active {
    background-color: #0052a3;
}

/* Rating Container */
.rating-container {
    background-color: #ffffff;
    padding: 30px 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 560px;
}

.rating-container h2 {
    font-size: 1.75rem;
    color: #000000;
    margin-bottom: 30px;
    text-align: center;
}

.rating-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.rating-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 2px solid #0066cc;
    border-radius: 12px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.rating-btn:active {
    transform: scale(0.95);
}

.rating-btn.excellent {
    border-color: #00cc66;
    color: #00cc66;
}

.rating-btn.excellent:active {
    background-color: #f0fff6;
}

.rating-btn.good {
    border-color: #0066cc;
    color: #0066cc;
}

.rating-btn.good:active {
    background-color: #f0f7ff;
}

.rating-btn.average {
    border-color: #ffcc00;
    color: #ffcc00;
}

.rating-btn.average:active {
    background-color: #fffaf0;
}

.rating-btn.bad {
    border-color: #ff3333;
    color: #ff3333;
}

.rating-btn.bad:active {
    background-color: #fff0f0;
}

.emoji {
    font-size: 2.5rem;
}

.label {
    font-size: 0.9rem;
}

/* Review QR Container */
.review-container {
    background-color: #ffffff;
    padding: 14px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    row-gap: 6px;
    overflow: hidden;
}

.review-container .content-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-container h2 {
    font-size: 1.55rem;
    color: #000000;
    margin-bottom: 0;
}

.review-subtitle {
    color: #666666;
    margin-bottom: 6px;
    font-size: 0.93rem;
    line-height: 1.25;
}

.spanish-text-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999999;
    margin-top: 4px;
}

.google-icon-wrapper {
    margin-bottom: 8px;
}

.google-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
}

.review-link-wrapper {
    margin-bottom: 12px;
}

.review-link-wrapper a {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid #0057b8;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0057b8;
    text-decoration: none;
    background: #ffffff;
}

.review-link-wrapper a:hover {
    text-decoration: none;
    background: #eef5ff;
}

.review-link-spanish {
    margin-top: 6px;
    font-size: 0.95rem;
}

.review-or {
    margin: 2px 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #666666;
    text-align: center;
}

.qr-code-wrapper {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.qr-code {
    max-width: 100%;
    width: 200px;
    height: 200px;
}

.countdown {
    font-size: 0.92rem;
    color: #666666;
    margin-bottom: 8px;
}

.review-container .home-button {
    margin-top: 4px;
    padding: 10px 16px;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .review-container {
        padding: 12px 10px;
        min-height: unset;
    }

    .review-container h2 {
        font-size: 1.45rem;
    }

    .review-subtitle {
        margin-bottom: 6px;
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .qr-code {
        width: 180px;
        height: 180px;
    }

    .google-icon {
        width: 52px;
        height: 52px;
    }

    .countdown {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

/* Thank You Container */
.thankyou-container {
    background-color: #ffffff;
    padding: 32px 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 520px;
}

.thankyou-container h2 {
    font-size: 1.7rem;
    color: #000000;
    margin-bottom: 18px;
    line-height: 1.2;
}

.thankyou-container .spanish-text {
    margin-top: 2px;
    line-height: 1.15;
}

.feedback-message {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 16px;
    line-height: 1.25;
}

.feedback-message .spanish-text {
    margin-top: 1px;
}

.feedback-icon {
    font-size: 3rem;
    color: #00cc66;
    margin-bottom: 22px;
}

.redirect-message {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.25;
}

.home-button,
.back-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.home-button .button-line {
    display: block;
    line-height: 1.2;
}

.home-button:active,
.back-button:active {
    background-color: #0052a3;
}

.back-button {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2px;
}

.home-button.google-review-button {
    background-color: #ffffff;
    color: #0066cc;
    border: 3px solid #0066cc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.22);
    animation: ctaPulse 2.2s ease-in-out infinite;
}

.home-button.google-review-button .spanish-text-button {
    color: #0066cc;
}

.home-button.google-review-button:active {
    background-color: #eaf3ff;
}

.button-google-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

@keyframes ctaPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(0, 102, 204, 0.22);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 7px 20px rgba(0, 102, 204, 0.34);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-button.google-review-button {
        animation: none;
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .hotel-title {
        font-size: 2rem;
    }

    .arrow-button {
        width: 100px;
        height: 100px;
    }

    .arrow-icon {
        width: 50px;
        height: 50px;
    }

    .rating-buttons {
        grid-template-columns: 1fr;
    }

    .qr-code {
        width: 250px;
        height: 250px;
    }
}
body {
    margin: 0;
    overflow: hidden;
}

.container {
    min-height: 100vh;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feedback-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.08);
    max-height: calc(100vh - 20px);
    overflow: hidden;
}

.feedback-container h2 {
    text-align: center;
    margin-bottom: 6px;
    font-size: 20px;
    color: #333;
}

.feedback-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.feedback-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    background: #f9f9f9;
    border-radius: 10px;
    min-height: 56px;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 150px;
    min-width: 150px;
}

.feedback-icon {
    width: 24px;
    height: 24px;
}

.item-label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    line-height: 1.2;
    margin: 0;
}

.score-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.score-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #FF5252 0%, #FFC107 50%, #4CAF50 100%);
    outline: none;
    border-radius: 1px;
    cursor: pointer;
}

.score-slider::-webkit-slider-thumb,
.score-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #2196F3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}

.score-value {
    font-weight: bold;
    color: #2196F3;
    font-size: 14px;
    min-width: 24px;
    text-align: right;
}

.feedback-container .button-row {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
}

.feedback-container .submit-btn {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
}

.feedback-container .submit-btn .spanish-text-button {
    color: rgba(255, 255, 255, 0.85);
}

.feedback-container .submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feedback-container .submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(102, 126, 234, 0.3);
}

.feedback-container .back-button {
    background: #f0f0f0;
    color: #333;
    border: none;
    transition: background 0.2s;
}

.feedback-container .back-button:hover {
    background: #e0e0e0;
}

@media (max-width: 520px) {
    .feedback-container {
        max-width: 100%;
        padding: 10px;
    }

    .feedback-items {
        grid-template-columns: 1fr;
    }

    .feedback-item {
        min-height: auto;
    }

    .feedback-container h2 {
        font-size: 20px;
    }
}

@media (max-height: 700px) {
    .feedback-container {
        max-height: calc(100vh - 16px);
        padding: 8px;
    }

    .feedback-item {
        padding: 6px;
    }

    .feedback-container .submit-btn,
    .feedback-container .back-button {
        padding: 7px;
        font-size: 13px;
    }
}
