
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ECFFDC;
    color: #222;
}


/* =========================
   SITE HEADER  
========================= */

.site-header {
    background: #063B5C;
    border-bottom: 3px solid #183A4B;
}

/* Main logo + text arrangement */

.header-brand {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 30px;
}

/* Cartoon logo */

.logo {
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.logo img {
    display: block;

    width: 300px;
    max-width: 35vw;

    height: auto;
}

/* Website name area */

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Website name */

.site-name {
    display: inline-block;

    color: #ffffff;
    text-decoration: none;

    font-size: 48px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: -1.5px;

    text-shadow:
        2px 3px 0 #111,
        0 0 8px rgba(0, 0, 0, 0.4);
}

/* Blue .com */

.site-name span {
    color: #29B6E6;
}

/* Red underline */

.brand-underline {
    width: 100%;
    height: 6px;

    background: #ff2020;

    border-radius: 50%;

    margin-top: 8px;

    transform: rotate(-2deg);

    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Tagline */

.brand-text p {
    margin: 12px 0 0;

    color: #ffffff;

    font-size: 18px;
    font-weight: 500;

    letter-spacing: 0.3px;

    text-shadow:
        1px 2px 3px rgba(0, 0, 0, 0.5);
}


.main-content {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 20px 30px;
    overflow: visible;
    }

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    padding: 15px 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    isolation: isolate;
    background: #F1F0EB;
    transform: translateZ(0);
    backface-visibility: hidden;
    margin-bottom: 20px;
    border-top: 3px solid #244E63;
    
}


/* =========================
   WHEEL
   ========================= */

.wheel {
    width: 300px;
    height: 300px;
    max-width: 100%;
    margin: 30px auto;
    position: relative;
    perspective: 900px;
}

.wheel-track {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;

    /*
     * JavaScript controls rotation.
     */
    animation: none;
}

.wheel-card {
    width: 260px;
    height: 260px;

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        rotateY(calc(var(--i) * 60deg))
        translateZ(250px);

    border: 4px solid white;
    border-radius: 15px;

    overflow: hidden;

    box-shadow: 0 5px 15px #0003;

    background: #eee;

    backface-visibility: visible;
}

.wheel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================
   WHEEL AREA + CHARACTERS
   ========================= */

.wheel-area {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;
}

.wheel-character {
    flex: 0 0 250px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2;
}

.wheel-character img {
    display: block;

    width: 250px;
    height: auto;

    object-fit: contain;
}

.wheel-character-left {
    justify-content: flex-end;
}

.wheel-character-right {
    justify-content: flex-start;
}
/* Make Bala taller */
.wheel-character-right img {
    height: 450px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
}
/*
 * Keep wheel as the main focus.
 */
.wheel-area .wheel {
    flex: 1 1 auto;
    min-width: 0;
}


/* =========================
   MOBILE WHEEL
   ========================= */

@media (max-width: 700px) {

    .wheel-area {
        gap: 0;
    }

    .wheel-character {
        flex: 0 0 85px;
    }

    .wheel-character img {
        width: 85px;
    }

    .wheel {
        height: 240px;
    }

    .wheel-card {

        width: 130px;
        height: 130px;

        transform:
            translate(-50%, -50%)
            rotateY(calc(var(--i) * 60deg))
            translateZ(120px);
    }

}


@media (max-width: 480px) {

    .wheel-character {
        flex: 0 0 65px;
    }

    .wheel-character img {
        width: 65px;
    }

    .wheel {
        height: 220px;
    }

    .wheel-card {

        width: 115px;
        height: 115px;

        transform:
            translate(-50%, -50%)
            rotateY(calc(var(--i) * 60deg))
            translateZ(105px);
    }

}


/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {

    .wheel-track {
        animation: none;
    }

}


.tab {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
    background: #B8CBD3;
}

.tab.active {
    background: #063B5C;
    color: #fff;
    border-color: #063B5C;
}

.wheel-section,
.gallery-section {
    text-align: center;
    margin-bottom: 45px;
}

.wheel-section h2,
.gallery-section h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.section-description {
    color: #888;
    font-size: 14px;
}


.photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.photo-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    background: white;
    border: 2px solid #244E63;
    box-shadow: 0 2px 8px #0000000d;
}


.photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.photo-card p {
    font-size: 13px;
    padding: 0 8px;
    overflow-wrap: anywhere;
}

.empty-message {
    display: none;
    color: #888;
    padding: 25px;
}

.site-footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 25px 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}
@media (max-width: 600px) {

    .main-content {
        width: 100%;
        padding: 15px 10px;
    }

   .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }

    .category-tabs {
        margin-bottom: 20px;
    }

    .tab {
        padding: 10px 30px;
    }


}


/* =========================
   GALLERY CAPTION OVERLAY
========================= */

.photo-card {
    position: relative;
    overflow: hidden;
}

.photo-card p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    margin: 0;
    padding: 28px 12px 10px;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82),
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0)
    );

    color: #fff;

    font-size: 13px;
    line-height: 1.4;

    opacity: 0;

    transform: translateY(10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.photo-card:hover p {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   MOBILE HEADER
========================= */

@media (max-width: 700px) {

    .site-header {
        padding: 15px 12px;
    }

    .header-brand {
        gap: 15px;
    }

    .logo img {
        width: 150px;
        max-width: 38vw;
    }

    .site-name {
        font-size: 28px;
        letter-spacing: -0.8px;
    }

    .brand-underline {
        height: 4px;
        margin-top: 6px;
    }

    .brand-text p {
        font-size: 12px;
        margin-top: 8px;
    }
}


@media (max-width: 480px) {

    .header-brand {
        gap: 10px;
    }

    .logo img {
        width: 125px;
        max-width: 35vw;
    }

    .site-name {
        font-size: 22px;
        letter-spacing: -0.5px;
    }

    .brand-text p {
        font-size: 10px;
        line-height: 1.3;
    }

    .brand-underline {
        height: 3px;
    }
}

   @media (max-width: 380px) {

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .tab {
        padding: 9px 24px;
        font-size: 14px;
    }

}

/* =========================
   ABOUT PAGE
========================= */

.about-page {
    max-width: 900px;
    margin: 25px auto 50px;
    padding: 35px 40px;
    background: #fff;
    border: 1px solid #e8e5dc;
    border-radius: 14px;
    box-shadow: 0 4px 15px #063B5C0D;
}

.about-page h1 {
    margin: 0 0 25px;
    color: #063B5C;
    font-size: 32px;
    line-height: 1.2;
}

.about-page h2 {
    margin: 32px 0 12px;
    color: #063B5C;
    font-size: 21px;
    line-height: 1.3;
}

.about-page p {
    margin: 0 0 16px;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

.about-page strong {
    color: #063B5C;
}

@media (max-width: 600px) {

    .about-page {
        margin: 15px auto 35px;
        padding: 25px 20px;
        border-radius: 10px;
    }

    .about-page h1 {
        font-size: 27px;
        margin-bottom: 20px;
    }

    .about-page h2 {
        font-size: 19px;
        margin-top: 27px;
    }

    .about-page p {
        font-size: 14px;
        line-height: 1.65;
    }

}

/* =========================
   LEGAL PAGES
========================= */

.legal-page {
    max-width: 900px;
    margin: 25px auto 50px;
    padding: 35px 40px;
    background: #fff;
    border: 1px solid #e8e5dc;
    border-radius: 14px;
    box-shadow: 0 4px 15px #063B5C0D;
}

.legal-page h1 {
    margin: 0 0 10px;
    color: #063B5C;
    font-size: 32px;
    line-height: 1.2;
}

.legal-page h2 {
    margin: 32px 0 12px;
    color: #063B5C;
    font-size: 21px;
    line-height: 1.3;
}

.legal-page p {
    margin: 0 0 16px;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

.legal-page .last-updated {
    color: #777;
    font-size: 13px;
    margin-bottom: 28px;
}

.legal-page ul {
    margin: 0 0 20px;
    padding-left: 25px;
    color: #444;
}

.legal-page li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.legal-page a {
    color: #063B5C;
    font-weight: 600;
    text-decoration: none;
}

.legal-page a:hover {
    color: #042D45;
    text-decoration: underline;
}

@media (max-width: 600px) {

    .legal-page {
        margin: 15px auto 35px;
        padding: 25px 20px;
        border-radius: 10px;
    }

    .legal-page h1 {
        font-size: 27px;
    }

    .legal-page h2 {
        font-size: 19px;
        margin-top: 27px;
    }

    .legal-page p,
    .legal-page li {
        font-size: 14px;
        line-height: 1.65;
    }

}

/* =========================
   CONTACT PAGE
========================= */

.contact-page {
    max-width: 900px;
    margin: 25px auto 50px;
    padding: 35px 40px;
    background: #fff;
    border: 1px solid #e8e5dc;
    border-radius: 14px;
    box-shadow: 0 4px 15px #063B5C0D;
}

.contact-page h1 {
    margin: 0 0 25px;
    color: #063B5C;
    font-size: 32px;
    line-height: 1.2;
}

.contact-page h2 {
    margin: 32px 0 12px;
    color: #063B5C;
    font-size: 21px;
    line-height: 1.3;
}

.contact-page p {
    margin: 0 0 16px;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

.contact-page ul {
    margin: 0 0 20px;
    padding-left: 25px;
    color: #444;
}

.contact-page li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.contact-page a {
    color: #063B5C;
    font-weight: 600;
    text-decoration: none;
}

.contact-page a:hover {
    color: #042D45;
    text-decoration: underline;
}

.contact-email {
    display: inline-block;
    padding: 12px 16px;
    background: #F1F0EB;
    border: 1px solid #d8dedf;
    border-radius: 8px;
}

@media (max-width: 600px) {

    .contact-page {
        margin: 15px auto 35px;
        padding: 25px 20px;
        border-radius: 10px;
    }

    .contact-page h1 {
        font-size: 27px;
    }

    .contact-page h2 {
        font-size: 19px;
        margin-top: 27px;
    }

    .contact-page p,
    .contact-page li {
        font-size: 14px;
        line-height: 1.65;
    }

}








/* ================================
   PUBLISHING / SCHEDULING
================================ */

.publish-options {
    margin-top: 18px;
}

.publish-options-title {
    display: block;
    margin-bottom: 10px;
}

.publish-choice {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.publish-choice label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.publish-choice input[type="radio"] {
    width: auto;
    margin-right: 6px;
}


/* ================================
   SCHEDULE FIELDS - CLOSED
================================ */

.schedule-fields {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    margin-top: 0;
    padding: 0 15px;

    background: #F1F0EB;

    border: 1px solid transparent;
    border-radius: 8px;

    transition:
        max-height 0.45s ease,
        opacity 0.3s ease,
        margin-top 0.45s ease,
        padding 0.45s ease,
        border-color 0.45s ease;
}


/* ================================
   SCHEDULE FIELDS - OPEN
================================ */

.schedule-fields.active {
    max-height: 250px;
    opacity: 1;

    margin-top: 12px;
    padding: 15px;

    border-color: #e8e5dc;
}


/* ================================
   DATE / TIME FIELDS
================================ */

.schedule-field {
    margin-bottom: 12px;
}

.schedule-field:last-child {
    margin-bottom: 0;
}

.schedule-field label {
    display: block;
    margin-bottom: 6px;
}

/* =========================================
   MANUAL PHOTO SLIDER
========================================= */

.wheel-section h1 {
    color: #063B5C;
    font-size: 32px;
    margin: 10px 0 12px;
}

.section-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 auto 18px;
    max-width: 750px;
}

/* Category buttons directly below introduction */

.category-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    position: relative;
    top: auto;

    margin: 0 auto 25px;
    padding: 10px 0;

    background: transparent;
    border-top: none;
    isolation: auto;
    transform: none;
    backface-visibility: visible;
}

/* Slider and characters */

.wheel-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    margin: 10px auto 25px;
}

/* Characters on either side */

.wheel-character {
    flex: 0 1 220px;
    min-width: 0;
}

.wheel-character img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

/* Main slider */

.photo-slider {
    flex: 1 1 650px;
    min-width: 0;
    max-width: 720px;
}

.slider-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ECFFDC; 
    
    border-radius: 14px;
    
}

.featured-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/* Previous and Next arrows */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 46px;
    height: 46px;
    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: #063B5C;
    color: #ffffff;

    font-size: 23px;
    cursor: pointer;

    box-shadow: 0 3px 10px #00000035;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

.slider-arrow:hover {
    background: #0a567f;
    transform: translateY(-50%) scale(1.06);
}

.slider-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* Caption below the large photo */

.slider-caption {
    min-height: 24px;
    margin: 12px 0 20px;
    color: #344955;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.slider-empty {
    padding: 20px;
    color: #555;
}

/* Gallery heading */

.wheel-section h2 {
    color: #063B5C;
    font-size: 23px;
    margin: 25px 0 12px;
}

/* Highlight the thumbnail matching the large photo */

.photo-card {
    cursor: pointer;
    border: 3px solid #244E63;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.photo-card.active-photo {
    border-color: #ff2020;
    box-shadow:
        0 0 0 2px #ffffff,
        0 0 0 5px #ff2020;
    transform: translateY(-2px);
}

/* Keyboard accessibility */

.slider-arrow:focus-visible,
.tab:focus-visible,
.photo-card:focus-visible {
    outline: 3px solid #29B6E6;
    outline-offset: 3px;
}

/* Mobile layout */

@media (max-width: 800px) {

    .wheel-area {
        gap: 8px;
    }

    .wheel-character {
        flex: 0 1 100px;
    }

    .wheel-character img {
        width: 100%;
    }

    .photo-slider {
        flex: 1 1 auto;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .slider-prev {
        left: 7px;
    }

    .slider-next {
        right: 7px;
    }
}

@media (max-width: 480px) {

    .wheel-section h1 {
        font-size: 25px;
        line-height: 1.3;
    }

    .section-description {
        font-size: 14px;
    }

    .wheel-area {
        gap: 5px;
    }

    .wheel-character {
        flex: 0 1 58px;
    }

    .photo-slider {
        flex: 1 1 auto;
    }

    .slider-stage {
        aspect-ratio: 4 / 5;
        border-radius: 9px;
    }

    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .slider-prev {
        left: 5px;
    }

    .slider-next {
        right: 5px;
    }

    .slider-caption {
        font-size: 13px;
    }

    .category-tabs {
        gap: 10px;
        margin-bottom: 18px;
    }
}


/* Layout: Tatii | Featured Photo | Bala */

.wheel-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;              /* Space between characters and photo */
    width: 100%;
    margin: 10px auto 25px;
}


/* ================================
   TATII AND BALA CHARACTER SIZES
================================ */

/* Tatii - Left Character */
.wheel-character-left {
    flex: 0 0 220px;
}

.wheel-character-left img {
    display: block;
    width: 250px !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain;
}

/* Bala - Right Character */
.wheel-character-right {
    flex: 0 0 220px;
}

.wheel-character-right img {
    display: block;
    width: 300px !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain;
}


/* Featured photo container */

.photo-slider {
    flex: 1 1 750px;        /* Space allocated to the photo */
    min-width: 0;
    max-width: 850px;       /* Maximum photo-slider width */
}

/* Separate the featured photo section from the gallery */

.wheel-section {
    border-bottom: 2px solid #244E63;
    padding-bottom: 25px;
    margin-bottom: 30px;
}



/* Gallery section */
.gallery-section {
    position: relative;
    padding-top: 20px;
    border-top: 3px solid #FFFFFF;
}

/* Keep the gallery's top border at the top of the browser */
.gallery-section {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ecffdc;
}

/* Gallery scrolling area */
.gallery-scroll-area {
    max-height: none;
    height: auto;
    overflow: visible;
    padding: 10px;
   
}



/* Scrollable gallery area */
.gallery-scroll-area {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    scrollbar-width: auto;
    scrollbar-color: #244E63 #F1F0EB;
}

/* Keep gallery columns and layout */
.gallery-scroll-area .photo-grid {
    margin-top: 0;
}

/* Sticky gallery border and section on scroll */
.gallery-section {
    scroll-margin-top: 10px;
}


/* Remove the gallery's internal scrollbar */
.gallery-scroll-area {
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    overflow: visible !important;
    scrollbar-width: none !important;
}

.gallery-scroll-area::-webkit-scrollbar {
    display: none !important;
}


/* Separate Puzzle Game navigation button */
.puzzle-game-button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 20px;
border-radius: 8px;
background-color: #28A745;
color: #FFFFFF;
text-decoration: none;
font-weight: bold;
border: 2px solid #28A745;
white-space: nowrap;
position: absolute;
left: calc(50% + 500px);
top: 50%;
transform: translateY(-50%);

}

.puzzle-game-button:hover {
background-color: #218838;
border-color: #218838;
color: #FFFFFF;
}


/* Desktop: keep your preferred position */
.category-tabs {
position: relative;
}

.puzzle-game-button {
position: absolute;
left: calc(50% + 500px);
top: 50%;
transform: translateY(-50%);
}

/* Mobile: place Puzzle Game below the category buttons */
@media (max-width: 768px) {
.category-tabs {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 10px;
padding-bottom: 12px;
}

.puzzle-game-button {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin-top: 8px;
}

}

/* Hide the caption displayed beneath the featured slideshow image */

#slider-caption {
    display: none;
}


/* Style the homepage introductory text #28A745 */
.section-description {
    color: #244E63;
    font-weight: bold;
}



/* Feedback section */
.feedback-section {
    padding: 40px 20px;
}

.feedback-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 25px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.feedback-container h2 {
    color: #244E63;
    text-align: center;
}

.feedback-intro {
    text-align: center;
    line-height: 1.6;
}

.feedback-field {
    margin-bottom: 18px;
}

.feedback-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    color: #244E63;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    font: inherit;
}

.feedback-field textarea {
    resize: vertical;
}

.feedback-submit {
    width: 100%;
    padding: 13px;
    background: #28A745;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.feedback-submit:hover {
    background: #218838;
}

.feedback-notice {
    margin: 15px 0;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.feedback-success {
    background: #D4EDDA;
    color: #155724;
}

.feedback-error {
    background: #F8D7DA;
    color: #721C24;
}


/* Floating feedback button */
.feedback-toggle {
    position: fixed;
    right: 20px;
    bottom: 25px;
    z-index: 9998;
    padding: 13px 20px;
    background: #28A745;
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.feedback-toggle:hover {
    background: #218838;
}

/* Floating feedback panel */
.feedback-panel {
    position: fixed;
    right: 20px;
    bottom: 85px;
    z-index: 9999;
    width: 350px;
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 20px;
    background: #FFFFFF;
    border: 2px solid #244E63;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.feedback-panel[hidden] {
    display: none !important;
}

.feedback-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.feedback-panel-header h2 {
    margin: 0;
    color: #244E63;
    font-size: 20px;
}

.feedback-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #244E63;
}

.feedback-panel > p {
    font-size: 14px;
    line-height: 1.5;
}

.feedback-panel .feedback-form label {
    display: block;
    margin: 12px 0 5px;
    color: #244E63;
    font-weight: bold;
}

.feedback-panel .feedback-form input,
.feedback-panel .feedback-form select,
.feedback-panel .feedback-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    font: inherit;
    box-sizing: border-box;
}

.feedback-panel .feedback-form textarea {
    resize: vertical;
}

.feedback-panel .feedback-submit {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: #28A745;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.feedback-panel .feedback-submit:hover {
    background: #218838;
}

/* Mobile layout */
@media (max-width: 480px) {
    .feedback-toggle {
        right: 12px;
        bottom: 15px;
    }

    .feedback-panel {
        right: 10px;
        bottom: 75px;
        width: 350px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 100px);
    }
}


/* Feedback confirmation messages */
.feedback-notice {
    margin: 12px 0;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.feedback-success {
    background: #D4EDDA;
    color: #155724;
}

.feedback-error {
    background: #F8D7DA;
    color: #721C24;
}
