/* Request form & admin — Blanc Hermès */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
}

body.request-page {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0A1628;
    line-height: 1.6;
    min-height: 100vh;
    background: linear-gradient(160deg, #F7F5F0 0%, #EDE8E0 45%, #E4DDD3 100%);
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.request-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #F7F5F0 0%, #EDE8E0 45%, #E4DDD3 100%);
    position: relative;
}

.request-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 20%, rgba(59, 111, 182, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 90% 80%, rgba(42, 74, 122, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.request-header {
    position: relative;
    z-index: 2;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
}

.request-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.request-back {
    font-size: 0.875rem;
    color: #5A6A8A;
    text-decoration: none;
    transition: color 0.2s;
}

.request-back:hover {
    color: #2A4A7A;
}

.request-main {
    position: relative;
    z-index: 1;
    padding: 3rem 0 5rem;
}

.request-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.request-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    color: #0A1628;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.request-subtitle {
    color: #5A6A8A;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 2rem;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 520px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .request-card {
        padding: 1.75rem 1.25rem;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #1B2A4A;
    letter-spacing: 0.02em;
}

.form-group label .optional {
    color: #5A6A8A;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(10, 22, 40, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: #0A1628;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2A4A7A;
    box-shadow: 0 0 0 3px rgba(42, 74, 122, 0.12);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.request-submit {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: #0A1628;
    color: #FAFAF8;
    border: none;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.request-submit:hover {
    background: #1B3A6B;
}

.request-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: none;
}

.form-message.visible {
    display: block;
}

.form-message.success {
    background: rgba(42, 74, 122, 0.08);
    color: #1B3A6B;
    border: 1px solid rgba(42, 74, 122, 0.15);
}

.form-message.error {
    background: rgba(180, 40, 40, 0.06);
    color: #8B2020;
    border: 1px solid rgba(180, 40, 40, 0.15);
}

/* Admin */
.admin-page .request-card {
    max-width: 960px;
}

.admin-gate {
    max-width: 400px;
    margin: 0 auto;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(10, 22, 40, 0.08);
    vertical-align: top;
}

.admin-table th {
    font-weight: 600;
    color: #1B2A4A;
    background: rgba(255, 255, 255, 0.5);
}

.admin-table td {
    color: #0A1628;
}

.admin-table .msg-cell {
    max-width: 280px;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-empty {
    text-align: center;
    color: #5A6A8A;
    padding: 2rem;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-count {
    font-size: 0.85rem;
    color: #5A6A8A;
}

.admin-logout {
    background: transparent;
    border: 1px solid rgba(10, 22, 40, 0.15);
    color: #1B2A4A;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
}

.admin-logout:hover {
    border-color: #2A4A7A;
    color: #2A4A7A;
}

.admin-header-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #0A1628;
    font-size: 0.95rem;
}

.admin-panel-title {
    margin-bottom: 0.25rem;
}

.admin-table a {
    color: #2A4A7A;
    text-decoration: none;
}

.admin-table a:hover {
    text-decoration: underline;
}

.admin-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.35);
}

.hidden {
    display: none !important;
}
