﻿body {
    background: radial-gradient(circle at top left, rgba(121, 40, 202, 0.08), transparent 34%), radial-gradient(circle at bottom right, rgba(255, 0, 128, 0.08), transparent 34%), #edf7f3;
}

/* Shared public page container */
.public-page {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.public-shell {
    width: 100%;
    max-width: 620px;
}

.public-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Header */
.public-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.public-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, #ff0080, #7928ca);
    box-shadow: 0 10px 26px rgba(121, 40, 202, 0.28);
}

.public-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 800;
    color: #1f2430;
}

.public-subtitle {
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #667085;
    font-size: 0.98rem;
}

/* Forms */
.public-card .form-label {
    font-weight: 700;
    color: #344054;
    margin-bottom: 0.45rem;
}

.public-card .form-control {
    border-radius: 14px;
    border: 1px solid #d0d5dd;
    min-height: 50px;
    padding: 0.8rem 1rem;
    box-shadow: none;
}

.public-card textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.public-card .form-control:focus {
    border-color: #7928ca;
    box-shadow: 0 0 0 0.2rem rgba(121, 40, 202, 0.12);
}

/* Main button */
.send-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.25rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff0080, #7928ca);
    box-shadow: 0 10px 24px rgba(121, 40, 202, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .send-btn:hover {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(121, 40, 202, 0.34);
    }

/* Requests closed */
.closed-box {
    background: #fff4e5;
    color: #7a4b00;
    border: 1px solid #f3d3a3;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
}

.state-icon {
    font-size: 2rem;
    margin-bottom: 0.65rem;
}

.state-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.state-text {
    margin: 0;
    opacity: 0.9;
}

/* Thanks page */
.thanks-card {
    text-align: center;
}

.success-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #e7f8ef;
    color: #17663a;
    font-size: 0.9rem;
    font-weight: 700;
}

.thanks-muted {
    margin: 1.25rem 0 0;
    color: #98a2b3;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 575.98px) {
    .public-page {
        padding: 1rem 0.75rem;
    }

    .public-card {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .public-title {
        font-size: 1.5rem;
    }

    .public-icon {
        width: 56px;
        height: 56px;
        font-size: 1.7rem;
    }

    .public-card .form-control {
        font-size: 16px;
    }

    .send-btn {
        padding: 0.9rem 1rem;
    }
}
