/* =========================================
   TASK 1: SESSION HEADER REDESIGN
   ========================================= */
/* Hide unnecessary elements */
.tm-session-header .tm-session-date,
.tm-session-header .tm-session-type,
/* Assuming simple classes, might need adjustment based on valid HTML */
.tm-session-cycle {
    display: none !important;
}

/* Redesigned Header */
.tm-session-header,
.accordion-toggle {
    background-color: #333333 !important;
    /* Dark Grey */
    color: #ffffff !important;
    text-align: center !important;
    border: none !important;
    display: block !important;
    /* Ensure block for centering */
    padding: 15px !important;
    border-radius: 5px;
    margin-bottom: 20px;
}

.tm-session-title {
    float: none !important;
    display: block !important;
    margin: 0 auto !important;
    font-size: 1.2em;
    text-transform: uppercase;
    text-align: center;
}

/* Hover State */
.tm-session-header:hover,
.accordion-toggle:hover {
    color: #D1B57E !important;
    /* Gold */
    background-color: #333333 !important;
    /* Keep bg dark */
}

.tm-session-header:hover .tm-session-title {
    color: #D1B57E !important;
}


/* =========================================
   TASK 2 & 3: BLOCK LAYOUT & FEEDBACK
   ========================================= */
/* Block Header (Injected) */
.tme-frontend-block-header {
    background-color: transparent;
    border-bottom: 2px solid #D1B57E;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    width: 100%;
    clear: both;
}

.tme-frontend-block-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

/* General Instructions (Beige Box) */
.tme-frontend-block-consignes {
    background-color: #f2e7c3;
    /* Beige from PDF */
    border-left: 4px solid #D1B57E;
    padding: 10px 15px;
    margin-bottom: 20px;
    color: #555;
    font-style: italic;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* Feedback Zone (Injected) */
.tme-frontend-feedback-zone {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    background-color: #fafafa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
    border-top: 3px solid #D1B57E;
    /* Top Border */
}

.tme-feedback-label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* =========================================
   TASK 4: MEDIA SLIDER
   ========================================= */
.tme-media-slider-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    /* Limit width */
    margin: 15px 20px 15px 0;
    /* Margin right for text wrap */
    overflow: hidden;
    touch-action: pan-y;
    float: left;
    /* Float left */
    clear: both;
    /* Ensure it clears previous floats if any */
}

.tme-media-slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.tme-media-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tme-media-slide img,
.tme-media-slide video {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Slider Controls */
.tme-slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.tme-slider-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.tme-slider-dot.active {
    background: #D1B57E;
}


/* =========================================
   TASK 5: REMOVE REQUIRED LABEL
   ========================================= */
/* Target the required asterisk or text in the form */
label .required,
.form-required,
span.required {
    display: none !important;
}


/* =========================================
   TASK 6: BUTTON HOVER STANDARDIZATION
   ========================================= */
button:hover,
input[type="submit"]:hover,
.button:hover,
.btn:hover,
.tm-button:hover {
    background-color: #D1B57E !important;
    border-color: #D1B57E !important;
    color: #000 !important;
    /* Text black on gold */
}

/* Specific overrides for TME buttons if needed */
.tme-submit-feedback:hover {
    background-color: #D1B57E !important;
}

/* =========================================
   Hide base plugin's duplicate feedback form
   Our tme-form-section handles feedback instead
   ========================================= */
.tm-feedback {
    display: none !important;
}