/* RLEventSubmit — frontend form styles */

.rles-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }

.rles-intro {
    background: #f7f6fb;
    border-left: 4px solid #4c4084;
    padding: 14px 18px;
    margin-bottom: 28px;
    border-radius: 0 3px 3px 0;
    font-size: .9375rem;
    color: #444;
    line-height: 1.6;
}

/* Alert */
.rles-alert { padding: 14px 18px; border-radius: 3px; margin-bottom: 24px; font-size: .875rem; }
.rles-alert--error { background: #fdf2f2; border: 1px solid #f5c6c6; color: #8b1a1a; }
.rles-alert ul { margin: 8px 0 0 20px; padding: 0; }

/* Fieldset */
.rles-fieldset {
    border: 1px solid #e0dff0;
    border-radius: 4px;
    padding: 20px 24px 16px;
    margin-bottom: 24px;
    background: #fff;
}
.rles-legend {
    font-family: 'Georgia', serif;
    font-size: .9375rem;
    font-weight: 700;
    color: #4c4084;
    padding: 0 8px;
    letter-spacing: .01em;
}

/* Grid rows */
.rles-row { display: grid; gap: 16px; }
.rles-row--2 { grid-template-columns: 1fr 1fr; }
.rles-row--3 { grid-template-columns: 2fr 1fr 1fr; }

/* Fields */
.rles-field { display: flex; flex-direction: column; margin-top: 14px; }
.rles-field:first-child { margin-top: 0; }
.rles-row .rles-field { margin-top: 0; }

.rles-label {
    font-size: .8125rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    letter-spacing: .01em;
}
.rles-req { color: #c0392b; }

.rles-input,
.rles-select,
.rles-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: .9375rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.rles-input:focus,
.rles-select:focus,
.rles-textarea:focus {
    outline: none;
    border-color: #4c4084;
    box-shadow: 0 0 0 3px rgba(76,64,132,.12);
    background: #fff;
}
.rles-textarea { resize: vertical; line-height: 1.55; }

/* Submit row */
.rles-submit-row { margin-top: 8px; }
.rles-terms {
    font-size: .8125rem;
    color: #888;
    margin: 0 0 16px;
    line-height: 1.5;
}

.rles-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #4c4084;
    color: #fff;
    font-family: 'Georgia', serif;
    font-size: .9375rem;
    font-weight: 700;
    padding: 14px 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background .18s;
    letter-spacing: .01em;
}
.rles-btn-submit:hover { background: #3a3065; }

/* Success screen */
.rles-wrap--success { text-align: center; padding: 64px 16px; }
.rles-success__icon { color: #2a7d4f; margin-bottom: 20px; }
.rles-success__title {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0 0 12px;
}
.rles-success__text { color: #555; line-height: 1.65; max-width: 500px; margin: 0 auto 24px; }
.rles-success__link {
    color: #4c4084;
    font-weight: 700;
    text-decoration: none;
}
.rles-success__link:hover { text-decoration: underline; }

/* File upload areas */
.rles-input-file { display: none; }

.rles-upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #c5c3e0;
    border-radius: 4px;
    min-height: 140px;
    cursor: pointer;
    background: #fafafa;
    transition: border-color .18s, background .18s;
    overflow: hidden;
    position: relative;
}
.rles-upload-area:hover { border-color: #4c4084; background: #f4f3fb; }
.rles-upload-area--has-image { border-style: solid; border-color: #4c4084; }

.rles-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: .8125rem;
    pointer-events: none;
}
.rles-upload-placeholder svg { color: #b0acd4; }

.rles-upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

.rles-field-hint {
    font-size: .75rem;
    color: #999;
    margin: 6px 0 0;
}

/* Responsive */
@media (max-width: 600px) {
    .rles-row--2 { grid-template-columns: 1fr; }
    .rles-row--3 { grid-template-columns: 1fr; }
    .rles-fieldset { padding: 16px; }
    .rles-btn-submit { width: 100%; justify-content: center; }
}
