@import url('theme_new.css');

.rh-listing-form-page {
    padding-top: 130px;
    padding-bottom: 100px;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.rh-listing-form-header { text-align: left; margin-bottom: 32px; }
.rh-listing-form-header .rh-eyebrow-line { justify-content: flex-start; }
.rh-listing-form-header .rh-eyebrow-line::after { display: none; }
.rh-listing-form-header h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 38px);
    margin: 10px 0 8px;
    color: var(--text);
}
.rh-listing-form-header p { color: var(--text-muted); font-size: 15px; margin: 0; max-width: 520px; }

.rh-login-prompt {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}
.rh-login-prompt p { color: var(--text-muted); font-size: 15px; margin: 0 0 20px; }

.rh-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.rh-form-card h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 4px; color: var(--text); }
.rh-form-card .rule { width: 34px; height: 2px; background: var(--accent-gradient); border-radius: 2px; margin-bottom: 20px; }

.rh-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rh-form-grid.thirds { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.rh-field { margin-bottom: 4px; }
.rh-field label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-faint);
    margin-bottom: 6px;
    font-family: var(--font-display);
}
.rh-field input[type="text"],
.rh-field input[type="number"],
.rh-field select,
.rh-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease;
}
.rh-field select option { background: var(--bg-elevated); color: var(--text); }
.rh-field input:focus, .rh-field select:focus, .rh-field textarea:focus { border-color: var(--accent-purple); }
.rh-field textarea { min-height: 130px; resize: vertical; font-family: var(--font-body); }

/* ---------- Photo uploads ---------- */
.rh-photo-block { margin-bottom: 26px; }
.rh-photo-block:last-child { margin-bottom: 0; }
.rh-photo-block-head { margin-bottom: 12px; }
.rh-photo-block-head strong { display: block; font-family: var(--font-display); font-size: 14px; color: var(--text); }
.rh-photo-block-head span { font-size: 12px; color: var(--text-faint); }

.rh-cover-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 18px;
}
.rh-cover-preview {
    width: 120px; height: 120px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    object-fit: cover;
    flex-shrink: 0;
    display: none;
}
.rh-cover-preview.visible { display: block; }
.rh-cover-placeholder {
    width: 120px; height: 120px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-faint);
    font-size: 26px;
    flex-shrink: 0;
}
.rh-cover-placeholder.hidden { display: none; }
.rh-cover-upload input[type="file"] { display: none; }

.rh-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.rh-upload-btn:hover { border-color: var(--accent-purple); background: rgba(139, 92, 246, .12); }
.rh-upload-filename { display: block; color: var(--text-faint); font-size: 12px; margin-top: 8px; }

.rh-supporting-upload {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 18px;
}
.rh-supporting-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.rh-supporting-preview img {
    width: 84px; height: 84px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border);
}

.rh-form-submit-row { display: flex; justify-content: flex-end; margin-top: 8px; }
.rh-form-submit-row input[type="submit"] {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 14px 34px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease;
}
.rh-form-submit-row input[type="submit"]:hover { transform: translateY(-2px); }

@media (max-width: 640px) {
    .rh-listing-form-page { padding-top: 120px; }
    .rh-form-grid { grid-template-columns: 1fr; }
    .rh-cover-upload { flex-direction: column; align-items: flex-start; }
}
