* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #f4f6f8;
    color: #1d2430;
    font-family: -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans Myanmar",
        "Myanmar Text",
        Arial,
        sans-serif;
    padding: 24px 12px;
}

.page {
    width: min(900px, 100%);
    margin: auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}


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

.form-header {
    padding: 26px 28px 20px;
    border-bottom: 1px solid #cfd5dd;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-image {
    max-width: 150px;
    max-height: 90px;
    object-fit: contain;
}

.brand-text h1 {
    margin: 0;
    font-size: 24px;
}

.brand-text h2 {
    margin: 5px 0 0;
    font-size: 18px;
    color: #1f4f78;
}

.brand-text p {
    margin: 5px 0 0;
    color: #667085;
}


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

form {
    padding: 24px 28px 30px;
}

.section {
    margin-bottom: 28px;
}

.section-title {
    font-weight: 700;
    font-size: 17px;
    padding-bottom: 9px;
    margin-bottom: 16px;
    border-bottom: 2px solid #1f4f78;
}


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

.row {
    display: grid;
    gap: 14px;
}

.row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/*
   အရင် photo box အတွက်
   150px column မထားတော့ဘူး
*/
.top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}


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

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

label span {
    color: #c62828;
}


/* =========================
   INPUTS
========================= */

input,
textarea,
select,
button {
    font: inherit;
    pointer-events: auto;
    touch-action: manipulation;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cfd5dd;
    border-radius: 8px;
    padding: 11px 12px;
    background: #ffffff;
    outline: none;
    color: #1d2430;
    font-size: 16px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #1f4f78;
    box-shadow: 0 0 0 3px rgba(31, 79, 120, 0.10);
}

textarea {
    resize: vertical;
}


/* =========================
   PHOTO UPLOAD
========================= */

/*
   အခု photo preview box မသုံးတော့ဘူး။
   ရိုးရိုး file upload field ပဲသုံးမယ်။
*/

#photoInput {
    display: block;
    width: 100%;
    padding: 9px 10px;
    background: #ffffff;
    border: 1px solid #cfd5dd;
    border-radius: 8px;
    cursor: pointer;
}

#photoInput::file-selector-button {
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    margin-right: 12px;
    background: #e9edf2;
    color: #1d2430;
    font-weight: 600;
    cursor: pointer;
}


/* =========================
   COURSE INFORMATION
========================= */

.info-box {
    border: 1px solid #cfd5dd;
    border-radius: 8px;
    padding: 10px 12px;
    min-height: 66px;
}

.info-box small {
    display: block;
    color: #667085;
    margin-bottom: 4px;
}

.info-box strong {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}


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

.agreement {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.6;
}

.agreement input {
    width: auto;
    margin-top: 4px;
}

.agreement span {
    color: #1d2430;
}


/* =========================
   BUTTONS
========================= */

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.btn {
    border: 0;
    border-radius: 8px;
    padding: 11px 20px;
    cursor: pointer;
    font-weight: 700;
}

.primary {
    background: #1f4f78;
    color: #ffffff;
}

.primary:hover {
    background: #173b59;
}

.secondary {
    background: #e9edf2;
    color: #1d2430;
}


/* =========================
   MESSAGE
========================= */

.message {
    display: none;
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #eef5fb;
    border: 1px solid #c7ddef;
}

.message.show {
    display: block;
}


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

@media (max-width: 700px) {

    body {
        padding: 0;
    }

    .page {
        border-radius: 0;
        box-shadow: none;
    }

    .form-header,
    form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand {
        display: block;
        text-align: center;
    }

    .header-image {
        margin-bottom: 10px;
    }

    .brand-text h1 {
        font-size: 20px;
    }

    .brand-text h2 {
        font-size: 16px;
    }

    .row.two,
    .row.three,
    .top-grid {
        grid-template-columns: 1fr;
    }

    input,
    textarea,
    select,
    button {
        font-size: 16px;
    }

    .actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }
}


/* =========================
   PRINT
========================= */

@media print {

    body {
        background: #ffffff;
        padding: 0;
    }

    .page {
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .actions,
    .message {
        display: none !important;
    }
}