/* --- Global Styles & Variables --- */
:root {
    --primary-color: #2C9C91;
    --secondary-color: #a0d6d3;
    --light-gray-color: #f9f9f9;
    --white-color: #ffffff;
    --dark-text: #333333;
    --light-text: #777777;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --border-radius-pill: 50px;
}

body {
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    padding-top: 80px; /* Space for sticky header */
    background-color: var(--white-color);
    color: var(--dark-text);
}

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

h1, h2, h3, h4 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    padding: 10px 25px;
    border-radius: var(--border-radius-pill);
    border: none;
    font-family: 'Sarabun', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* --- Header --- */
.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    /* position: relative; /* Added for absolute positioning of child elements */ */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit color from parent to maintain original logo color */
}

.logo {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.logo .fa-heart-pulse {
    font-size: 2rem;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.header-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.header-title a {
    text-decoration: none;
    color: var(--dark-text); /* Set base color on the link */
    transition: color 0.3s ease;
}

.header-title a:hover {
    color: var(--primary-color); /* Change color on hover */
}

.header-title p {
    font-size: 1.2rem;
    margin: 0;
}

.btn-login {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-login:hover {
    background-color: #258a80;
}

/* --- Hero/Banner Section --- */
.hero-banner {
    margin-top: 30px;
}
.swiper-container {
    max-width: 1200px; /* Reverted to same as .container */
    height: 450px; /* Adjusted height to 450px */
    border-radius: var(--border-radius-lg);
    overflow: hidden; /* Ensure images don't spill */
    position: relative; /* For pagination/navigation positioning */
}

.swiper-container .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pagination and Navigation Customizations */
.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    display: none; /* Hide navigation buttons */
}

/* Responsive adjustments for Swiper */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    .main-header {
        height: 70px;
    }
    .main-header .container {
        justify-content: center; /* Center logo */
    }
    .logo-link {
        margin: 0 auto; /* Ensure logo is centered */
    }
    .logo h1 {
       font-size: 1.2rem;
    }
     .btn-login {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    .banner-placeholder {
        height: 200px;
    }
    .hamburger {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
}
@media (max-width: 576px) {
    .swiper-container {
        height: 150px; /* Even smaller height on small mobile */
        margin: 0 10px; /* Add some margin on very small screens */
    }
}

/* --- Search & Filter Section --- */
.search-filter-section {
    text-align: center;
    padding: 40px 0;
    background-color: var(--light-gray-color);
    margin-top: 30px;
    border-radius: var(--border-radius-lg);
}

.search-filter-section h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-pill) 0 0 var(--border-radius-pill);
    font-size: 1rem;
    font-family: 'Sarabun', sans-serif;
}

.search-bar .btn-search {
    border-radius: 0 var(--border-radius-pill) var(--border-radius-pill) 0;
    background-color: var(--primary-color);
    color: white;
    white-space: nowrap;
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.tag {
    background-color: #e0e0e0;
    color: var(--dark-text);
    padding: 8px 20px;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: #ccc;
}

.tag.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}


/* --- Video Grid Section --- */
.video-grid-section {
    padding: 40px 0;
}

.video-grid-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.video-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px (44, 156, 145, 0.15);
}

.card-thumbnail {
    position: relative;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(160, 214, 211, 0.85);
    backdrop-filter: blur(5px);
    color: var(--dark-text);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--border-radius-pill);
}

.card-content {
    padding: 20px;
}

.card-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.card-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--dark-text);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    margin-top: 0;
    font-size: 1.2rem; /* Revert font size for h4 text */
    color: var(--dark-text); /* Revert color for h4 text */
}

.footer-col .logo-text { /* New class for the 'PainCare' text */
    color: var(--primary-color);
    font-size: 1.8rem; /* Keep PainCare text large */
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col .logo-text .fas {
    font-size: 2.2rem; /* Keep PainCare icon large */
}

.footer-col p, .footer-col li {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--dark-text);
    transition: color 0.3s;
}
.footer-col ul a:hover {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--dark-text);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}




/* --- Responsive Design & New Navigation --- */

/* Hamburger Menu Icon */
.hamburger {
    display: none; /* Hidden by default */
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark-text);
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation to "X" */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Links List */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links li {
    padding: 0;
}

.mobile-only-title {
    display: none;
}

.nav-links a.profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px;
    border-radius: 50px;
}
.nav-links a.profile-link:hover {
    color: var(--primary-color);
    background-color: #f0f0f0;
}
.nav-links a.profile-link img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}
.nav-links a.logout-link {
    color: var(--light-text);
    font-size: 1.2rem;
    transition: color 0.3s;
    padding: 10px;
}

.nav-links a.logout-link:hover {
    color: var(--primary-color);
}
.nav-links .btn-login {
    margin-left: 15px;
}

/* Styles for header user profile menu on desktop */
.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 15px; /* Gap between profile link and logout link */
}

.user-profile-menu .profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px; /* Add padding for better click area */
    border-radius: var(--border-radius-pill); /* Make it pill shaped */
}

.user-profile-menu .profile-link:hover {
    color: var(--primary-color);
    background-color: #f0f0f0;
}

.user-profile-menu .profile-link img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.user-profile-menu .logout-link {
    color: var(--light-text);
    font-size: 1.2rem;
    transition: color 0.3s;
    padding: 10px;
}

.user-profile-menu .logout-link:hover {
    color: var(--primary-color);
}


@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }

    /* --- New Responsive Nav --- */
    .header-title {
        display: none;
    }

    .mobile-only-title {
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    .mobile-only-title a {
        color: var(--dark-text);
        padding-bottom: 15px;
        display: block;
    }

    .hamburger {
        display: block; /* Show hamburger on smaller screens */
    }

    .nav-links {
        display: none; /* Hide links by default on mobile */
        position: absolute;
        top: 80px; /* Position below header */
        right: 0;
        background-color: var(--white-color);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-top: 1px solid #f0f0f0;
    }

    .nav-links.active {
        display: flex; /* Show links when hamburger is clicked */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links a.profile-link {
        justify-content: center;
    }
    
    .nav-links a.logout-link {
        font-size: 1rem;
        display: block;
        padding: 15px;
        width: 100%;
    }
    
    .nav-links .btn-login {
        margin-left: 0;
        width: 80%;
        max-width: 250px;
    }
}

/* --- Watch Page (watch.php) Styles --- */
.watch-page-background {
    background-color: #F5F7FA;
}

.watch-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    display: flex; /* Make it a flex container to align icon and text */
    align-items: center; /* Vertically center items */
    margin-bottom: 15px;
    font-size: 1.1rem; /* Adjust general font size of the link */
    font-weight: 700;
    color: var(--dark-text);
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.back-link .fas {
    font-size: 1.5rem; /* Make the icon larger */
    margin-right: 8px; /* Add some space between the icon and the text */
}

.video-content-card {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 30px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-badge-large {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 6px 18px;
    border-radius: var(--border-radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
}

.star-rating .fas.fa-star {
    color: #FFC107; /* Gold/Yellow */
    font-size: 1.2rem;
    margin-left: 2px;
}

.video-title {
    font-size: 2.2rem;
    color: var(--dark-text);
    margin: 0 0 10px 0;
}

.video-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin: 0 0 30px 0;
    font-weight: 400;
}

.video-description {
    color: var(--dark-text);
    line-height: 1.8;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Responsive adjustments for watch page */
@media (max-width: 768px) {
    .video-info {
        padding: 25px;
    }
    .video-title {
        font-size: 1.8rem;
    }
    .video-subtitle {
        font-size: 1.1rem;
    }
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr; /* Single column for videos */
    }
    .watch-container {
        padding: 10px;
    }
    .video-info {
        padding: 20px;
    }
    .video-title {
        font-size: 1.5rem;
    }
    .video-subtitle {
        font-size: 1.0rem;
    }
}

/* --- New Authentication Modal Styles --- */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Changed from flex to none */
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-container.active {
    display: flex; /* Show when active */
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Login Modal Size */
#login-modal .modal-box {
    max-width: 400px;
}
#login-modal .form-group input,
#login-modal form > .btn-submit {
    width: 100%;
    max-width: 400px; /* Increased max-width to 400px */
    box-sizing: border-box; /* Ensures padding and border are included in the total width */
    margin-left: auto; /* Center input/button within its column */
    margin-right: auto; /* Center input/button within its column */
}

/* Register Modal Size */
#register-modal .modal-box {
    max-width: 700px;
    padding: 30px 30px; /* Adjusted padding */
}

/* Forgot Password Modal Size */
#forgot-password-modal .modal-box {
    max-width: 450px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.modal-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
}

.modal-box h2 .free-text {
    color: var(--primary-color); /* Emphasize with primary color */
    font-weight: 700; /* Make it bold */
    /* You can also add font-size or text-transform if desired, e.g., font-size: 1.1em; */
}

.form-message {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

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

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

.form-group {
    margin-bottom: 15px; /* Adjusted margin */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #e74c3c;
}

.input-wrapper {
    position: relative;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    background-color: #f3f5f7;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    color: #333;
    transition: 0.3s;
    font-family: 'Prompt', sans-serif;
}

input:focus {
    border-color: #2c978f;
    background-color: #fff;
}

::placeholder {
    color: #bbb;
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    margin-bottom: 25px;
}

.forgot-link {
    color: #2c978f;
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #2c978f;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: 'Prompt', sans-serif;
}

.btn-submit:hover {
    opacity: 0.9;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #333;
}

.link-text {
    color: #2c978f;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid #2c978f;
    padding-bottom: 1px;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px; /* Reverted horizontal gap to 30px */
}

.edit-profile-card .form-group input[type="text"],
.edit-profile-card .form-group input[type="file"] {
    width: 100%;
    max-width: 100%; /* Ensure inputs don't overflow their grid column */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    margin-left: 0; /* Remove centering from register modal rule */
    margin-right: 0; /* Remove centering from register modal rule */
}
.edit-profile-card .register-grid {
    grid-template-columns: 1fr 1fr; /* Default to two columns */
    gap: 15px 30px;
}
@media (max-width: 600px) {
    .edit-profile-card .register-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        gap: 10px;
    }
    .edit-profile-card .form-group input[type="text"],
    .edit-profile-card .form-group input[type="file"] {
        max-width: 100%; /* Ensure full width on single column */
    }
}

/* Styling for register modal inputs */
#register-modal .register-grid .form-group input {
    width: 100%;
    max-width: 350px; /* Limit input width to make it shorter */
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width */
    margin-left: auto; /* Center input within its column */
    margin-right: auto; /* Center input within its column */
}
#register-modal form > .btn-submit {
    width: 100%;
    max-width: 350px; /* Limit button width */
    box-sizing: border-box; /* Apply to button for consistency */
    margin-left: auto; /* Center button */
    margin-right: auto; /* Center button */
}



@media (max-width: 600px) {
    .register-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    #register-modal .modal-box {
        padding: 20px;
    }
}

/* Profile Page Section */
.profile-section {
    padding: 40px 0;
}

.profile-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    padding: 30px;
    max-width: 600px;
    margin: 20px auto;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
    border: 4px solid #a0d6d3;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.profile-info p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.profile-info-actions {
    margin-top: 20px;
}

.btn-edit-profile {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    font-size: 0.9rem;
}
.btn-edit-profile:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Edit Profile Form */
.edit-profile-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 30px;
    max-width: 600px;
    margin: 20px auto;
}
.edit-profile-card h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
}
.edit-profile-card .form-group {
    margin-bottom: 20px;
}
.profile-picture-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.profile-picture-upload img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}
.profile-picture-upload input[type="file"] {
    font-size: 0.9rem;
    max-width: 250px;
}

.edit-profile-card .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}
.btn-cancel {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}
.btn-cancel:hover {
     background-color: #e0e0e0;
}

/* Helper class */
.hidden {
    display: none;
}




/* --- Password Toggle Button --- */
.input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.toggle-password:hover {
    color: #333;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

/* --- Rating System Styles --- */

/* Main star display on watch page */
.star-rating-display {
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    color: #FFC107; /* Gold/Yellow for stars */
}

.star-rating-display .rating-count {
    margin-left: 8px;
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
    display: none; /* Hide for now, can be re-enabled later */
}

.star-rating-display i {
    font-size: 1.1rem;
}

/* Rating Modal */
.rating-modal-content {
    max-width: 500px;
    text-align: center;
}

.rating-modal-content h2 {
    margin-bottom: 20px;
}

#rating-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.rating-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-category label {
    font-weight: 600;
    font-size: 1.1rem;
}

.star-rating-input {
    display: flex;
    gap: 5px;
    color: #dcdcdc; /* Default grey for stars */
}

.star-rating-input i {
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.star-rating-input i:hover {
    transform: scale(1.15);
}

.star-rating-input i.fas {
    color: #FFC107; /* Gold/Yellow for selected/hovered stars */
}

/* Messages inside the modal */
.modal-message {
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 500;
    display: block;
}

.modal-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modal-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}