.webcast-registration-wrapper {
    background-color: #ffffff;
    /* border: 1px solid #e0e0e0; */
    padding: 0px 0px 40px 0;
    margin-top: 40px;
    /* border-radius: 12px; */
    /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);*/
    /* max-width: 650px; */
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', sans-serif;
    color: #333;
    /*border-top: 2px solid #000000;*/
}

.webcast-registration-wrapper h2 {
    color: #333;
    /* Darker heading color */
    text-align: center;
    margin-bottom: 35px;
    /* More space below heading */
    font-size: 28px;
    /* Larger heading */
    font-weight: 600;
    /* Semi-bold */
    line-height: 1.3;
}

.webcast-wrapper {
    margin-top: 15px;
    padding: 25px 15px;
    background: #f2f2f2;
}

.webcast-registration-wrapper h2 span {
    display: block;
    font-size: 20px;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

/* --- Form Group Styling --- */

/* Add Flexbox to the webcast-holder to enable two columns */
.webcast-holder {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.webcast-form-group {
    flex: 1 1 calc(50% - 10px); /* This makes two items per line, accounting for gap */
    /* width: 45%; - Remove this, flex-basis will handle width */
}

/* Input Fields (text, email) and Textarea */
.webcast-form-group input[type="text"],
.webcast-form-group input[type="email"],
.webcast-form-group textarea,
.webcast-form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
    height: 100%;
}

.webcast-form-group input[type="text"]::placeholder,
.webcast-form-group input[type="email"]::placeholder,
.webcast-form-group textarea::placeholder {
    color: #999;
    /* Lighter placeholder text */
    opacity: 1;
    /* Ensure placeholder is always visible */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) { /* Adjust breakpoint as needed for mobile */
    .webcast-holder {
        flex-direction: column; /* Stack items vertically on smaller screens */
        gap: 15px; /* Adjust gap for single column layout */
    }

    .webcast-form-group {
        flex: 1 1 100%; /* Make each item take full width */
        display: flex;
        flex-direction: row;
    }
    .webcast-form-group label {
        width: 100%;
    }
}

/* Focus state for inputs and textareas */
.webcast-form-group input[type="text"]:focus,
.webcast-form-group input[type="email"]:focus,
.webcast-form-group textarea:focus,
.webcast-form-group select:focus {
    border-color: #0073aa;
    /* WordPress blue on focus */
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
    /* Subtle focus ring */
    outline: none;
    /* Remove default outline */
    background-color: #fff;
    /* White background on focus */
}

/* Required field indicator */
.webcast-form-group .required {
    color: #e74c3c;
    /* Red for required fields */
    font-weight: bold;
    margin-left: 3px;
    /* Small space after text */
}

/* --- Checkbox and Radio Button Styling --- */
.webcast-form-group input[type="checkbox"],
.webcast-form-group input[type="radio"] {
    margin-right: 12px;
    /* More space between input and label */
    vertical-align: middle;
    /* Align with text */
    width: 20px;
    /* Larger hit area */
    height: 20px;
    /* Larger hit area */
    border: 1px solid #ccc;
    border-radius: 4px;
    /* Slightly rounded */
    cursor: pointer;
    -webkit-appearance: none;
    /* Remove default browser styling */
    -moz-appearance: none;
    appearance: none;
    background-color: #fcfcfc;
    transition: all 0.2s ease-in-out;
    position: relative;
    /* For custom checkmark */
}

/* Custom checkmark for checkboxes */
.webcast-form-group input[type="checkbox"]:checked {
    background-color: #0073aa;
    border-color: #0073aa;
}

.webcast-form-group input[type="checkbox"]:checked::after {
    content: '\2713';
    /* Unicode checkmark */
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Custom styling for radio buttons */
.webcast-form-group input[type="radio"] {
    border-radius: 50%;
    /* Make it round */
}

.webcast-form-group input[type="radio"]:checked {
    background-color: #0073aa;
    border-color: #0073aa;
}

.webcast-form-group input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.webcast-form-group input[type="checkbox"]:focus,
.webcast-form-group input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
    outline: none;
}

.webcast-form-group label {
    /* General label for checkboxes, radios, consent */
    display: inline-block;
    /* Keep labels inline with inputs */
    font-weight: normal;
    /* Less bold for these labels */
    color: #555;
    cursor: pointer;
    vertical-align: middle;
    
    /* Align with inputs */
}

/* For radio group titles */
.webcast-radio-label {
    display: block;
    /* Make it a block element */
    margin-bottom: 10px;
    /* Spacing below the group title */
    font-weight: bold;
    /* Make the group title bold */
    color: #333;
}

/* --- Submit Button Styling --- */
#webcast-registration-form button[type="submit"] {
     background-color: #F84B4F;
     font-family: Ubuntu !important;
     color: #fff;
     padding: 7px 30px;
     border: none;
     /* Removed border-radius */
     font-size: 16px;
     font-weight: 600;
     cursor: pointer;
     transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
     width: auto;
     display: block;
     margin: 15px 0 0 auto;
     box-shadow: 0 4px 15px rgba(248, 75, 79, 0.3);
     letter-spacing: 0.5px;
     text-transform: uppercase;
}

#webcast-registration-form button[type="submit"]:hover {
     background-color: #e04246;
     transform: translateY(-2px);
     box-shadow: 0 6px 20px rgba(248, 75, 79, 0.4);
}

#webcast-registration-form button[type="submit"]:disabled {
     background-color: #a0a0a0;
     cursor: not-allowed;
     box-shadow: none;
     transform: translateY(0);
}
/* --- Messages (Success/Error) --- */
#webcast-registration-message {
    padding: 18px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for messages */
}

#webcast-registration-message.success {
    background-color: #e6ffe6;
    /* Light green */
    color: #28a745;
    /* Darker green text */
    border: 1px solid #c3e6cb;
}

#webcast-registration-message.error {
    background-color: #ffe6e6;
    /* Light red */
    color: #dc3545;
    /* Darker red text */
    border: 1px solid #f5c6cb;
}

/* Shortcode Layout */
.webcast-highlight-container {
    display: flex;
    gap: 40px; /* Space between items */
    margin: 40px 0;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
    justify-content: center; /* Center items if they don't fill the row */
    /* padding: 20px;
    background: #2B3338; */
}

.webcast-highlight-item {
    flex: 1;
    background-color: transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    box-sizing: border-box;
    min-width: 250px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.webcast-highlight-link-wrapper { /* The main clickable link wrapper */
    display: flex;
    flex-direction: column; /* Stack contents vertically within the link */
    align-items: center; /* Center content horizontally within the link */
    width: 100%; /* Ensure the link takes full width of the item */
    text-decoration: none;
    color: inherit;
}

.webcast-highlight-thumbnail-wrapper {
    position: relative;
    width: 100%; /* Take full width of its parent (.webcast-highlight-item) */
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
   /*  border-radius: 5px; Consistent border-radius for the image */
    margin-bottom: 15px; /* Space below the image */
}

.webcast-highlight-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.webcast-thumbnail-icon {
    position: absolute; /* Keep play icon centered on the image */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: 60px; /* Adjust icon size as needed */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webcast-thumbnail-icon svg {
    width: 100%;
    height: 100%;
}

.webcast-highlight-content {
    /* padding: 0 15px; */
    width: 100%; /* Ensure content takes full width */
    box-sizing: border-box;
    text-align: left;
}

.webcast-highlight-category {
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 10px;
    color: #ffffff;
    font-family: Ubuntu !important;
    font-weight: 700;
    font-size: 12px;
    border-radius: 3px;
    text-align: left;
    text-transform: uppercase;
}

.webcast-highlight-title {
    font-size: 22px;
    margin: 0 0 8px 0;
    font-family: Playfair !important;
    color: #000000;
    line-height: 1.3;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.webcast-highlight-author {
    font-size: 14px; /* Larger font size for author */
    color: #000000;
    text-align: left; /* Center the author */
    font-family: Ubuntu !important;
    font-weight: 700;
    margin-bottom: 10px; /* Space after author before bottom of card */
}


/* Cleanup of Old Styles (ensure these are gone or set to display: none) */
.webcast-highlight-featured,
.webcast-highlight-right-column,
.webcast-highlight-thumbnail.small,
.webcast-highlight-item h3, /* Old h3 from previous iteration, now handled by .webcast-highlight-title */
.webcast-highlight-item h4 {
    display: none; /* Hide any lingering old elements */
}


/* Responsive Adjustments */
@media (max-width: 992px) { /* Adjust breakpoint for tablets */
    .webcast-highlight-item {
        flex: 0 0 calc(47% - 0px); /* Two items per row on tablets */
    }
}

@media (max-width: 768px) { /* Adjust breakpoint for smaller tablets/large phones */
    .webcast-highlight-item {
        flex: 0 0 calc(100% - 0px); /* One item per row on smaller screens */
        min-width: unset; /* Remove min-width to allow full width */
    }
    .webcast-highlight-thumbnail-wrapper {
        padding-bottom: 60%; /* Slightly less tall image on mobile */
        margin-bottom: 10px;
    }
    .webcast-thumbnail-icon {
        width: 50px;
        height: 50px;
    }
    .webcast-highlight-category {
        font-size: 11px;
        padding: 2px 8px;
        margin-bottom: 8px;
    }
    .webcast-highlight-title {
        font-size: 20px;
        -webkit-line-clamp: 3; /* Allow 3 lines on mobile */
        margin-bottom: 6px;
    }
    .webcast-highlight-author {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

/* Webcast Access Page Styles (No changes here, just for completeness) */
.webcast-access-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.webcast-access-container .entry-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.webcast-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.webcast-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* Responsive tweaks */
@media screen and (max-width: 600px) {
    .webcast-access-container {
        padding: 1rem;
    }

    .webcast-access-container .entry-title {
        font-size: 1.5rem;
    }
}