/* Registration Form Styles */
.ie-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.ie-form-container {
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.ie-form-container h3 {
    margin: 0 0 25px;
    font-family: 'poppins', sans-serif;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

/* Honeypot */
.ie-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* Form Fields */
.ie-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ie-form-field {
    margin-bottom: 15px;
}

.ie-form-field label {
    display: block;
    margin-bottom: 6px;
    font-family: 'poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ie-form-field input[type="text"],
.ie-form-field input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'poppins', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ie-form-field input[type="text"]:focus,
.ie-form-field input[type="email"]:focus {
    outline: none;
    border-color: #B01F23;
}

/* Checkbox */
.ie-checkbox-field label {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    cursor: pointer;
}

.ie-checkbox-field input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    cursor: pointer;
}

.ie-checkbox-field a {
    color: #B01F23;
    text-decoration: none;
}

.ie-checkbox-field a:hover {
    text-decoration: underline;
}

/* Submit Button */
.ie-form-submit {
    margin-top: 25px;
}

.ie-submit-btn {
    width: 100%;
    padding: 14px 30px;
    background-color: #B01F23;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-family: 'poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ie-submit-btn:hover {
    background-color: #8a1619;
}

.ie-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Messages */
#ie-form-messages {
    margin-bottom: 20px;
}

.ie-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: 'poppins', sans-serif;
    font-size: 14px;
}

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

.ie-message-error {
    background-color: #B01F23;
    border: none;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 600px) {
    .ie-form-row {
        grid-template-columns: 1fr;
    }
    
    .ie-form-container {
        padding: 20px;
    }
}

.ie-checkbox-field label span {
    display: inline;
}

.ie-checkbox-field label {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
}

/* Shortcode Styles */
.ie-available-spots {
    color: #B01F23;
    font-weight: 700;
    font-size: 18px;
}

.ie-event-date {
    color: #333;
    font-weight: 600;
    font-family: 'poppins', sans-serif;
}

.ie-max-participants {
    color: #666;
    font-weight: 600;
    font-family: 'poppins', sans-serif;
}

.ie-shortcode-label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
    font-family: 'poppins', sans-serif;
}

/* Date Selection - Card Layout */
.ie-date-selection {
    margin-bottom: 20px;
}

.ie-date-selection > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    font-family: 'poppins', sans-serif;
}

/* Card option */
.ie-date-option {
    display: block;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.ie-date-option:hover:not(.ie-date-full) {
    border-color: #B01F23;
    box-shadow: 0 2px 8px rgba(176, 31, 35, 0.1);
}

/* Selected state via :has() + JS class fallback */
.ie-date-option:has(input[type="radio"]:checked),
.ie-date-option.ie-date-selected {
    border-color: #B01F23;
    background: #fff8f8;
}

/* Hide native radio */
.ie-date-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Card body */
.ie-date-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 12px;
}

/* Left: custom radio + info */
.ie-date-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Custom radio indicator */
.ie-date-card-radio {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.ie-date-option:has(input:checked) .ie-date-card-radio,
.ie-date-option.ie-date-selected .ie-date-card-radio {
    border-color: #B01F23;
    background: #B01F23;
}

.ie-date-option:has(input:checked) .ie-date-card-radio::after,
.ie-date-option.ie-date-selected .ie-date-card-radio::after {
    content: '';
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    display: block;
}

/* Date and time info */
.ie-date-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ie-date-card-date {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    font-family: 'poppins', sans-serif;
    line-height: 1.3;
}

.ie-date-option:has(input:checked) .ie-date-card-date,
.ie-date-option.ie-date-selected .ie-date-card-date {
    color: #B01F23;
}

.ie-date-card-time {
    font-size: 13px;
    color: #666;
    font-family: 'poppins', sans-serif;
    line-height: 1.3;
}

/* Spots badge */
.ie-spots-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    font-family: 'poppins', sans-serif;
    flex-shrink: 0;
}

.ie-spots-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.ie-spots-low {
    background: #fff3e0;
    color: #e65100;
}

.ie-spots-full-badge {
    background: #fce4e4;
    color: #B01F23;
}

/* Unavailable card */
.ie-date-full {
    opacity: 0.55;
    cursor: not-allowed;
    background: #fafafa;
}

.ie-date-full:hover {
    border-color: #e0e0e0 !important;
    box-shadow: none !important;
}

/* Kept for backward compat */
.ie-spots-info { color: #B01F23; font-weight: 600; }
.ie-date-text  { flex: 1; font-size: 14px; line-height: 1.5; }
.ie-full-label { color: #999; font-style: italic; margin-left: 8px; }