/* ============================================================
   Den-mas Ventures — Customer Rating Form Styles
   ============================================================ */

.rating-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.rating-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.rating-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.rating-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.rating-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.rating-intro {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.rating-intro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.rating-intro p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rating-form .form-group {
    margin-bottom: 25px;
}

.rating-form label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.rating-form label span {
    color: #e74c3c;
}

.rating-form input[type="text"],
.rating-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.rating-form input[type="text"]:focus,
.rating-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(97, 51, 227, 0.1);
}

.rating-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Star Rating */
.star-rating-group {
    text-align: center;
    padding: 20px 0;
}

.star-rating-group label {
    text-align: center;
    display: block;
    margin-bottom: 15px;
}

.star-rating {
    display: inline-flex;
    gap: 10px;
    font-size: 2.5rem;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ddd;
}

.star-label:hover {
    transform: scale(1.2);
}

.star-label i {
    transition: color 0.2s ease;
}

/* Rating Form Feedback */
.rating-form-feedback {
    display: none;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.rating-form-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rating-form-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rating-form-feedback i {
    margin-right: 8px;
}

/* Submit Button */
.rating-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(97, 51, 227, 0.3);
}

.rating-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(97, 51, 227, 0.4);
}

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

.rating-submit-btn i {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .rating-section {
        padding: 64px 0 40px;
    }

    .rating-container {
        width: 100%;
        box-sizing: border-box;
    }

    .rating-card {
        padding: 30px 20px;
    }

    .rating-header h1 {
        font-size: 2rem;
    }

    .star-rating {
        font-size: 2rem;
        gap: 4px;
    }

    .star-label:hover {
        transform: none;
    }

    .rating-submit-btn {
        min-height: 52px;
    }
}
