/* =========================================================================
   The Siri Internships — Stylesheet
   ========================================================================= */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
    color: #222;
    min-height: 100vh;
    padding: 20px;
}

/* -------- Public form ---------------------------------------------------- */
.wrap {
    max-width: 720px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    margin: 30px 0 24px;
}
.hero h1 {
    font-size: 32px;
    color: #4a1bbf;
    margin: 0;
    letter-spacing: -0.5px;
}
.hero .subtitle {
    color: #666;
    margin: 6px 0 0;
    font-size: 15px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 6px 30px rgba(74, 27, 191, 0.08);
}

.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}
.field .req { color: #d9488f; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="file"],
.field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d9d6e8;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus {
    border-color: #4a1bbf;
    box-shadow: 0 0 0 3px rgba(74, 27, 191, .12);
}
.field small { color: #777; font-size: 12px; }

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.field.consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: normal;
    font-size: 14px;
    color: #444;
}
.field.consent input { margin-top: 3px; }

.pay-box {
    background: linear-gradient(135deg, #fff5f9 0%, #f3f0ff 100%);
    border: 1.5px dashed #d9488f;
    border-radius: 12px;
    padding: 20px;
    margin: 22px 0;
}
.pay-box h3 {
    margin: 0 0 8px;
    color: #d9488f;
    font-size: 17px;
}
.pay-box p { margin: 0 0 14px; font-size: 14px; color: #555; }
.btn-pay {
    display: inline-block;
    background: #d9488f;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform .1s, box-shadow .2s;
}
.btn-pay:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217, 72, 143, .35); }

.btn-submit {
    width: 100%;
    background: #4a1bbf;
    color: #fff;
    border: 0;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background .15s, transform .1s;
}
.btn-submit:hover { background: #3d17a0; transform: translateY(-1px); }

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error   { background: #fde8ef; color: #b41d5c; border: 1px solid #f5c2d4; }
.alert-success { background: #e4f8ee; color: #1c7a45; border: 1px solid #b7ead0; }

.note {
    margin: 24px auto 40px;
    padding: 16px 20px;
    background: #fff8e6;
    border-left: 4px solid #f0b400;
    border-radius: 6px;
    font-size: 14px;
    color: #5a4600;
    line-height: 1.55;
}

/* Success page */
.success-card { text-align: center; padding: 44px 32px; }
.check {
    width: 76px; height: 76px;
    background: #1c7a45; color: #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 42px; line-height: 76px;
    font-weight: bold;
}
.success-card h1 { color: #1c7a45; margin: 0 0 12px; }
.success-card .lead { color: #444; font-size: 16px; line-height: 1.6; }

/* -------- Admin ---------------------------------------------------------- */
body.admin { background: #f6f7fb; }
.admin-wrap { max-width: 1200px; margin: 0 auto; }

.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin: 10px 0 22px;
    flex-wrap: wrap; gap: 12px;
}
.admin-header h1 { color: #4a1bbf; margin: 0; font-size: 24px; }
.admin-header .subtitle { color: #777; font-size: 14px; margin: 2px 0 0; }
.admin-actions { display: flex; gap: 10px; }

.btn-ghost {
    display: inline-block;
    padding: 9px 16px;
    border: 1.5px solid #4a1bbf;
    color: #4a1bbf;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    transition: all .15s;
}
.btn-ghost:hover { background: #4a1bbf; color: #fff; }

.stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-bottom: 20px;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
    background: #fff; padding: 20px; border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.stat h3 { margin: 0; font-size: 28px; color: #4a1bbf; }
.stat p  { margin: 4px 0 0; color: #777; font-size: 13px; }

.filterbar {
    display: flex; gap: 10px; margin-bottom: 16px;
    flex-wrap: wrap; align-items: center;
}
.filterbar input,
.filterbar select {
    padding: 10px 14px;
    border: 1.5px solid #d9d6e8;
    border-radius: 7px;
    font-size: 14px;
    background: #fff;
}
.filterbar input { flex: 1; min-width: 200px; }

.table-wrap {
    background: #fff;
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.apps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.apps-table thead {
    background: #4a1bbf;
    color: #fff;
}
.apps-table th { padding: 12px; text-align: left; font-weight: 600; font-size: 13px; }
.apps-table td { padding: 11px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
.apps-table tbody tr:hover { background: #faf9ff; }
.apps-table a { color: #4a1bbf; text-decoration: none; }
.apps-table a:hover { text-decoration: underline; }

.pill {
    display: inline-block; padding: 3px 10px;
    border-radius: 20px; font-size: 11px; font-weight: 600;
}
.pill-tech { background: #e4edff; color: #1e40af; }
.pill-non  { background: #fde8ef; color: #b41d5c; }

.btn-del {
    color: #b41d5c !important;
    font-size: 13px;
}
