/* HEM Core — Frontend Styles */
.hem-registration-form-wrap {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0;
}
.hem-registration-form-wrap h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.hem-form-field {
    margin-bottom: 1rem;
}
.hem-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.hem-form-field .required {
    color: #d63638;
}
.hem-form-field input,
.hem-form-field select,
.hem-form-field textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.hem-form-field input:focus,
.hem-form-field select:focus,
.hem-form-field textarea:focus {
    border-color: var(--hem-primary, #0073aa);
    outline: none;
    box-shadow: 0 0 0 1px var(--hem-primary, #0073aa);
}
/* Address multi-field group */
.hem-address-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hem-address-row {
    display: flex;
    gap: 0.5rem;
}
.hem-address-row input {
    flex: 1;
    min-width: 0;
}
.hem-form-actions {
    margin-top: 1.5rem;
}
.hem-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.hem-btn-primary {
    background: var(--hem-primary, #0073aa);
    color: #fff;
}
.hem-btn-primary:hover {
    background: var(--hem-primary-dark, #005a87);
}
.hem-form-messages {
    margin-top: 1rem;
}
.hem-form-messages .hem-success {
    color: #155724;
    background: #d4edda;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}
.hem-form-messages .hem-error-msg {
    color: #721c24;
    background: #f8d7da;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

/* Event cards grid */
.hem-events-grid {
    display: grid;
    gap: 1.5rem;
}
.hem-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hem-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hem-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hem-event-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    border-top: 3px solid var(--event-color, #0073aa);
    transition: box-shadow 0.2s;
}
.hem-event-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.hem-event-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.hem-event-card__content {
    padding: 1.25rem;
}
.hem-event-card__title {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}
.hem-event-card__title a {
    color: inherit;
    text-decoration: none;
}
.hem-event-card__date {
    color: #666;
    font-size: 0.9rem;
}
.hem-event-card__excerpt {
    color: #555;
    margin-top: 0.5rem;
}

/* Badges */
.hem-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.hem-badge--hybrid { background: #e3f2fd; color: #1565c0; }
.hem-badge--online { background: #e8f5e9; color: #2e7d32; }
.hem-badge--in-person { background: #fff3e0; color: #e65100; }
.hem-badge--sm { font-size: 0.65rem; padding: 0.15rem 0.4rem; }

/* Agenda */
.hem-agenda {
    max-width: 800px;
}
.hem-agenda-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.hem-agenda-item__time {
    flex: 0 0 120px;
    font-weight: 600;
    color: #333;
}
.hem-agenda-item__content {
    flex: 1;
}
.hem-agenda-item__title {
    margin: 0 0 0.25rem;
}
.hem-agenda-item__title a {
    color: inherit;
    text-decoration: none;
}
.hem-agenda-item__room {
    font-size: 0.85rem;
    color: #666;
    margin-right: 0.5rem;
}
.hem-agenda-item__speakers {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.hem-speaker-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f5f5f5;
    padding: 0.2rem 0.6rem;
    border-radius: 16px;
    font-size: 0.85rem;
}
.hem-speaker-chip__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Speaker cards */
.hem-speakers-grid {
    display: grid;
    gap: 1.5rem;
}
.hem-speaker-card {
    text-align: center;
    padding: 1.5rem 1rem;
}
.hem-speaker-card__avatar {
    margin-bottom: 1rem;
}
.hem-speaker-card__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}
.hem-speaker-card__name {
    margin: 0;
    font-size: 1rem;
}
.hem-speaker-card__name a {
    color: inherit;
    text-decoration: none;
}
.hem-speaker-card__title,
.hem-speaker-card__company {
    margin: 0.25rem 0 0;
    color: #666;
    font-size: 0.85rem;
}

/* Sponsor cards */
.hem-sponsors-grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}
.hem-sponsor-card {
    text-align: center;
    padding: 1rem;
}
.hem-sponsor-card__logo img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
}
.hem-sponsor-card__name {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.hem-no-results {
    text-align: center;
    color: #666;
    padding: 2rem;
}

@media (max-width: 768px) {
    .hem-grid-cols-3,
    .hem-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hem-agenda-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hem-agenda-item__time {
        flex: none;
    }
}

@media (max-width: 480px) {
    .hem-grid-cols-2,
    .hem-grid-cols-3,
    .hem-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}
