/* ====== MOTAPAY — Onboarding Page Styles ====== */

/* PAGE HEADER */
.page-header {
    background: var(--ink);
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107, 63, 160, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(107, 63, 160, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='52' viewBox='0 0 60 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.025'/%3E%3C/svg%3E");
    background-size: 60px 52px;
    pointer-events: none;
}

.page-header-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.page-header p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.5);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FORM */
.form-section {
    padding: 4rem 1.5rem 5.5rem;
    background: var(--white);
    display: block;
    width: 100%;
}

.form-container {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-container form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    width: 100%;
}

.form-intro p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.65;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    width: 100%;
    clear: both;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.form-group label .required {
    color: var(--red);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b0bc;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b7b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

.form-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
    width: 100%;
    display: block;
    clear: both;
}

.form-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 1.25rem;
    display: block;
    width: 100%;
    clear: both;
}

.form-submit {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    clear: both;
}

.form-submit button {
    font-family: 'DM Sans', sans-serif;
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    padding: 0.95rem 3rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-submit button:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(107, 63, 160, 0.35);
}

.form-submit button:active {
    transform: translateY(0);
}

.form-disclaimer {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 1rem;
    line-height: 1.5;
}

/* NEXT STEPS */
.next-steps {
    padding: 4rem 1.5rem 5rem;
    background: var(--surface);
}

.next-steps-inner {
    max-width: 800px;
    margin: 0 auto;
}

.next-steps-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.next-steps-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--ink);
    font-weight: 400;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.timeline-item {
    text-align: center;
    padding: 1.25rem 0.75rem;
}

.timeline-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--purple);
    color: var(--white);
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.timeline-item h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.timeline-item p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .page-header { padding: 7rem 1.25rem 3rem; }
    .page-header h1 { font-size: 1.5rem; }
    .form-section { padding: 3rem 1.25rem 4rem; }
    .form-row { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .next-steps { padding: 3rem 1.25rem 4rem; }
}

@media (max-width: 480px) {
    .timeline { grid-template-columns: 1fr; gap: 0.5rem; }
    .timeline-item { padding: 1rem 0.5rem; }
}
