/* Customer Rating Portal Styles */

.rating-page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rating-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    animation: slideUp 0.5s ease-out;
}

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

.rating-header {
    text-align: center;
    margin-bottom: 30px;
}

.rating-header h1 {
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.rating-subtitle {
    color: #6b7280;
    font-size: 16px;
}

.rating-section {
    margin-bottom: 30px;
}

.rating-section h2 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.rating-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rating-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.person-info {
    margin-bottom: 15px;
}

.person-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.person-role {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.rating-stars {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.1);
}

.rating-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.note-textarea {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.note-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-section {
    margin-top: 30px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-message h2 {
    color: #10b981;
    font-size: 24px;
    margin-bottom: 10px;
}

.success-message p {
    color: #6b7280;
    font-size: 16px;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 15px;
}

.error-message p {
    color: #dc2626;
    font-size: 14px;
    margin: 0;
}

/* Error Card Styles */
.error-card {
    text-align: center;
    padding: 60px 40px;
}

.error-card .error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: white;
    margin: 0 auto 25px;
}

.error-card h1 {
    color: #1f2937;
    font-size: 24px;
    margin-bottom: 15px;
}

.error-card p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 640px) {
    .rating-card {
        padding: 25px;
        border-radius: 15px;
    }
    
    .rating-header h1 {
        font-size: 22px;
    }
    
    .rating-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .rating-stars {
        gap: 6px;
    }
}
