/* =====================================
   KanoMart Rider Registration
===================================== */


/* =====================================
   RESET
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}


/* =====================================
   BODY
===================================== */

body {
    background: #f4f6f9;
    color: #222;
    min-height: 100vh;
}


/* =====================================
   HEADER
===================================== */

.registration-header {
    background: #0b6b4f;
    color: #fff;

    padding: 18px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.brand-title {
    font-size: 25px;
    font-weight: 800;
}

.brand-subtitle {
    margin-top: 4px;

    font-size: 14px;

    color: #d8eee7;
}

.admin-label {
    background: rgba(255, 255, 255, 0.15);

    padding: 9px 14px;

    border-radius: 20px;

    font-size: 13px;

    white-space: nowrap;
}


/* =====================================
   MAIN CONTAINER
===================================== */

.registration-container {
    width: 95%;
    max-width: 1100px;

    margin: 30px auto 50px;
}


/* =====================================
   PAGE HEADER
===================================== */

.page-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 30px;

    color: #222;
}

.page-header p {
    color: #777;

    margin-top: 6px;

    line-height: 1.5;
}


/* =====================================
   BACK BUTTON
===================================== */

.back-btn {
    border: none;

    background: #0b6b4f;

    color: #fff;

    padding: 11px 18px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;

    font-weight: bold;

    white-space: nowrap;
}

.back-btn:hover {
    background: #09563f;
}


/* =====================================
   FORM
===================================== */

.registration-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* =====================================
   FORM SECTION
===================================== */

.form-section {
    background: #fff;

    border-radius: 14px;

    padding: 25px;

    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.07);

    border: 1px solid #edf0f2;
}


/* =====================================
   SECTION TITLE
===================================== */

.section-title {
    display: flex;

    align-items: flex-start;

    gap: 13px;

    margin-bottom: 22px;

    padding-bottom: 15px;

    border-bottom: 1px solid #eee;
}

.section-number {
    width: 34px;
    height: 34px;

    min-width: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #0b6b4f;

    color: #fff;

    border-radius: 50%;

    font-size: 15px;

    font-weight: bold;
}

.section-title h2 {
    font-size: 20px;

    color: #222;

    margin-bottom: 4px;
}

.section-title p {
    color: #777;

    font-size: 13px;

    line-height: 1.4;
}


/* =====================================
   FORM GRID
===================================== */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* =====================================
   FORM GROUP
===================================== */

.form-group {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.form-group.full {
    grid-column: 1 / -1;
}


/* =====================================
   LABEL
===================================== */

.form-group label {
    font-size: 13px;

    font-weight: 700;

    color: #333;
}

.form-group label span {
    color: #d92d20;

    margin-left: 2px;
}


/* =====================================
   INPUT / SELECT / TEXTAREA
===================================== */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #d9dde2;

    background: #fff;

    border-radius: 8px;

    padding: 12px 13px;

    font-size: 14px;

    color: #222;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* INPUT */

.form-group input {
    height: 45px;
}


/* SELECT */

.form-group select {
    height: 45px;

    cursor: pointer;
}


/* TEXTAREA */

.form-group textarea {
    min-height: 90px;

    resize: vertical;

    line-height: 1.5;
}


/* FOCUS */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0b6b4f;

    box-shadow:
        0 0 0 3px rgba(11, 107, 79, 0.10);
}


/* =====================================
   FILE INPUT
===================================== */

.form-group input[type="file"] {
    height: auto;

    padding: 9px;

    cursor: pointer;

    background: #fafafa;
}


/* =====================================
   SMALL HELP TEXT
===================================== */

.form-group small {
    color: #777;

    font-size: 11px;

    line-height: 1.4;
}


/* =====================================
   SYSTEM INFORMATION
===================================== */

.system-info {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 20px;
}


/* =====================================
   INFO CARD
===================================== */

.info-card {
    background: #f7f9f8;

    border: 1px solid #e2ebe7;

    border-radius: 10px;

    padding: 15px;
}

.info-card span {
    display: block;

    color: #777;

    font-size: 12px;

    margin-bottom: 6px;
}

.info-card strong {
    display: block;

    color: #222;

    font-size: 14px;
}

.pending-text {
    color: #b54708 !important;
}


/* =====================================
   AGREEMENT SECTION
===================================== */

.agreement-section {
    background: #fff;
}


/* =====================================
   AGREEMENT BOX
===================================== */

.agreement-box {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    background: #f7faf9;

    border: 1px solid #dceae5;

    padding: 16px;

    border-radius: 10px;

    cursor: pointer;

    line-height: 1.6;

    font-size: 13px;

    color: #444;
}

.agreement-box input[type="checkbox"] {
    width: 18px;
    height: 18px;

    min-width: 18px;

    margin-top: 2px;

    accent-color: #0b6b4f;

    cursor: pointer;
}


/* =====================================
   FORM ACTIONS
===================================== */

.form-actions {
    background: #fff;

    border-radius: 14px;

    padding: 20px 25px;

    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 12px;

    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.06);

    border: 1px solid #edf0f2;
}


/* =====================================
   CANCEL BUTTON
===================================== */

.cancel-btn {
    border: 1px solid #d0d5d9;

    background: #fff;

    color: #444;

    padding: 12px 22px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;

    font-weight: bold;
}

.cancel-btn:hover {
    background: #f5f5f5;
}


/* =====================================
   REGISTER BUTTON
===================================== */

.register-btn {
    border: none;

    background: #0b6b4f;

    color: #fff;

    padding: 12px 24px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;

    font-weight: bold;

    min-width: 180px;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.register-btn:hover {
    background: #09563f;
}

.register-btn:active {
    transform: scale(0.98);
}


/* =====================================
   REQUIRED FIELD
===================================== */

.form-group input:required:invalid,
.form-group select:required:invalid,
.form-group textarea:required:invalid {
    /* Don't show red border until user interacts */
}


/* =====================================
   DISABLED
===================================== */

button:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}


/* =====================================
   TABLET
===================================== */

@media (max-width: 800px) {

    .registration-container {
        width: 94%;
    }

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

    .form-group.full {
        grid-column: auto;
    }

    .system-info {
        grid-template-columns: 1fr 1fr;
    }

}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {

    .registration-header {
        padding: 15px;

        flex-direction: column;

        align-items: flex-start;
    }

    .brand-title {
        font-size: 21px;
    }

    .brand-subtitle {
        font-size: 13px;
    }

    .admin-label {
        font-size: 11px;

        padding: 7px 10px;
    }


    .registration-container {
        width: 94%;

        margin:
            20px auto 35px;
    }


    .page-header {
        flex-direction: column;

        align-items: stretch;

        gap: 15px;
    }


    .page-header h1 {
        font-size: 26px;
    }


    .page-header p {
        font-size: 13px;
    }


    .back-btn {
        width: 100%;
    }


    .form-section {
        padding: 18px;

        border-radius: 12px;
    }


    .section-title {
        gap: 10px;

        margin-bottom: 18px;
    }


    .section-number {
        width: 30px;
        height: 30px;

        min-width: 30px;

        font-size: 13px;
    }


    .section-title h2 {
        font-size: 18px;
    }


    .section-title p {
        font-size: 12px;
    }


    .form-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .form-group input,
    .form-group select {
        height: 46px;
    }


    .system-info {
        grid-template-columns: 1fr;
    }


    .agreement-box {
        font-size: 12px;

        padding: 14px;
    }


    .form-actions {
        padding: 18px;

        flex-direction: column-reverse;

        align-items: stretch;
    }


    .cancel-btn,
    .register-btn {
        width: 100%;
    }

}


/* =====================================
   VERY SMALL PHONES
===================================== */

@media (max-width: 380px) {

    .registration-container {
        width: 92%;
    }

    .form-section {
        padding: 15px;
    }

    .page-header h1 {
        font-size: 23px;
    }

    .section-title h2 {
        font-size: 17px;
    }

}