/* Feedback Modal Styles - Scoped to prevent affecting other elements */
.rentizy-feedback-modal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.rentizy-feedback-modal button {
    outline: none;
}

.rentizy-feedback-modal .modal-dialog {
    max-width: 650px;
    margin: 1.75rem auto;
}

.rentizy-feedback-modal .modal-content {
    padding: 0 !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.rentizy-feedback-modal .modal-header {
    background: #03ab8e;
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    border: none;
}

.rentizy-feedback-modal .modal-header .close {
    color: white;
}

.rentizy-feedback-modal .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.rentizy-feedback-modal .close {
    color: white;
    opacity: 0.9;
    font-size: 1.5rem;
}

.rentizy-feedback-modal .close:hover {
    opacity: 1;
}

.rentizy-feedback-modal .modal-body {
    padding: 2rem;
}

.rentizy-feedback-modal .feedback-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.rentizy-feedback-modal .feedback-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rentizy-feedback-modal .section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.rentizy-feedback-modal .section-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.rentizy-feedback-modal .question-container {
    margin-bottom: 1.75rem;
}

.rentizy-feedback-modal .question-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.75rem;
    display: block;
}

.rentizy-feedback-modal .question-label .required-star {
    color: #dc3545;
    margin-left: 3px;
}

.rentizy-feedback-modal .question-help {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Custom form controls */
.rentizy-feedback-modal .form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.rentizy-feedback-modal .form-control:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

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

/* Yes/No buttons */
.rentizy-feedback-modal .yes-no-container {
    display: flex;
    gap: 1rem;
}

.rentizy-feedback-modal .yes-no-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
}

.rentizy-feedback-modal .yes-no-btn:hover {
    border-color: #14b8a6;
    background: #f8f9fa;
}

.rentizy-feedback-modal .yes-no-btn.selected {
    background: #14b8a6;
    color: white;
    border-color: #14b8a6;
}

/* Rating styles */
.rentizy-feedback-modal .rating-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.rentizy-feedback-modal .rating-item {
    flex: 1;
    aspect-ratio: 1;
    max-width: 50px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    background: white;
}

.rentizy-feedback-modal .rating-item:hover {
    border-color: #14b8a6;
    transform: scale(1.1);
}

.rentizy-feedback-modal .rating-item.selected {
    background: #14b8a6;
    color: white;
    border-color: #14b8a6;
}

.rentizy-feedback-modal .rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Choice buttons */
.rentizy-feedback-modal .choice-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rentizy-feedback-modal .choice-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.rentizy-feedback-modal .choice-btn:hover {
    border-color: #14b8a6;
    background: #f8f9fa;
}

.rentizy-feedback-modal .choice-btn.selected {
    background: #14b8a6;
    color: white;
    border-color: #14b8a6;
}

/* Time selection */
.rentizy-feedback-modal .time-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.rentizy-feedback-modal .time-option {
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.rentizy-feedback-modal .time-option:hover {
    border-color: #14b8a6;
    background: #f8f9fa;
}

.rentizy-feedback-modal .time-option.selected {
    background: #14b8a6;
    color: white;
    border-color: #14b8a6;
}

/* NPS Score */
.rentizy-feedback-modal .nps-container {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    margin: 1rem 0;
}

.rentizy-feedback-modal .nps-item {
    flex: 1;
    padding: 0.75rem 0.25rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.rentizy-feedback-modal .nps-item:first-child {
    border-radius: 8px 0 0 8px;
}

.rentizy-feedback-modal .nps-item:last-child {
    border-radius: 0 8px 8px 0;
}

.rentizy-feedback-modal .nps-item:hover {
    background: #f8f9fa;
}

.rentizy-feedback-modal .nps-item.selected {
    background: #14b8a6;
    color: white;
    border-color: #14b8a6;
}

/* Progress bar */
.rentizy-feedback-modal .progress-container {
    margin-bottom: 1.5rem;
}

.rentizy-feedback-modal .progress {
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
}

.rentizy-feedback-modal .progress-bar {
    background: linear-gradient(90deg, #20c997 0%, #17a2b8 100%);
    transition: width 0.3s ease;
}

/* Footer buttons */
.rentizy-feedback-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.25rem;
}

.rentizy-feedback-modal .btn-nav {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.rentizy-feedback-modal .btn-previous {
    background: white;
    color: #495057;
    border: 1px solid #dee2e6;
}

.rentizy-feedback-modal .btn-previous:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.rentizy-feedback-modal .btn-next {
    background: #14b8a6;
    color: white;
    border: none;
}

.rentizy-feedback-modal .btn-next:hover {
    background: #0bab9a !important;
}

.rentizy-feedback-modal .btn-submit {
    background: #14b8a6;
    color: white;
    border: none;
}

.rentizy-feedback-modal .btn-submit:hover {
    background: #0bab9a !important;
}

/* Success message */
.rentizy-feedback-modal .success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.rentizy-feedback-modal .success-icon {
    font-size: 4rem;
    color: #14b8a6;
    margin-bottom: 1rem;
}

.rentizy-feedback-modal .success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.rentizy-feedback-modal .success-text {
    color: #6c757d;
}

/* Loading spinner */
.rentizy-feedback-modal .loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #14b8a6;
    border-radius: 50%;
    animation: rentizy-spin 1s linear infinite;
}

@keyframes rentizy-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .rentizy-feedback-modal .modal-dialog {
        margin: 0.5rem;
    }

    .rentizy-feedback-modal .rating-container {
        flex-wrap: wrap;
    }

    .rentizy-feedback-modal .nps-container {
        flex-wrap: wrap;
    }

    .rentizy-feedback-modal .nps-item {
        min-width: 30px;
    }
}
