:root {
    --primary: #696cff;
    --primary-dark: #5f61e6;
    --background: #f5f5f9;
    --text: #566a7f;
    --heading: #32475c;
    --border: #d9dee3;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(105, 108, 255, .14), transparent 30%),
        var(--background);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mobile-shell {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.form-header h1,
.success-card h1 {
    margin: 0;
    color: var(--heading);
    font-size: 1.55rem;
    font-weight: 700;
}

.form-header p,
.success-card p {
    margin: 4px 0 0;
    color: #8592a3;
}

.header-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(105, 108, 255, .13);
    color: var(--primary);
    font-size: 1.45rem;
}

.form-card,
.success-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(67, 89, 113, .12);
    padding: 22px;
}

.form-label {
    color: var(--heading);
    font-size: .9rem;
    font-weight: 600;
}

.form-label span {
    color: #ff3e1d;
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: var(--border);
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(105, 108, 255, .14);
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.choice-card {
    cursor: pointer;
}

.choice-card input {
    display: none;
}

.choice-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    transition: .18s ease;
}

.choice-card input:checked + span {
    border-color: var(--primary);
    background: rgba(105, 108, 255, .09);
    color: var(--primary);
}

.upload-box {
    min-height: 132px;
    border: 1.5px dashed #b4bdc6;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    background: #fbfbfc;
    text-align: center;
    padding: 16px;
}

.upload-box i {
    color: var(--primary);
    font-size: 2rem;
}

.upload-box strong {
    color: var(--heading);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.upload-box small {
    color: #8592a3;
}

.submit-button {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    font-weight: 600;
}

.submit-button:hover,
.btn-primary:hover {
    background: var(--primary-dark);
}

.footer-note {
    margin: 16px 0 0;
    color: #8592a3;
    font-size: .82rem;
    text-align: center;
}

.success-card {
    text-align: center;
    margin-top: 36px;
}

.success-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    background: rgba(113, 221, 55, .15);
    color: #71dd37;
    font-size: 2rem;
}

.summary-box {
    margin: 24px 0;
    text-align: left;
    border: 1px solid #eceef1;
    border-radius: 14px;
    overflow: hidden;
}

.summary-box > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid #eceef1;
}

.summary-box > div:last-child {
    border-bottom: none;
}

.summary-box span {
    color: #8592a3;
}

.summary-box strong {
    color: var(--heading);
    text-align: right;
}

@media (max-width: 380px) {
    .mobile-shell {
        padding-inline: 12px;
    }

    .form-card {
        padding: 18px;
    }

    .row.g-3 > .col-7,
    .row.g-3 > .col-5 {
        width: 100%;
    }
}
