* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #333;
}

.page-wrap {
    width: calc(100% - 6px);
    min-height: 100vh;
    margin: 3px;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    background: #efefef;
}

.topbar {
    display: grid;
    grid-template-columns: 180px 1fr 340px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #444;
    background: #efefef;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.logo-kkhl {
    width: 140px;
    max-width: 100%;
    height: auto;
    display: block;
}

.topbar-center {
    text-align: center;
}

.topbar-center h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #383838;
}

.topbar-right {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.nav-btn {
    min-width: 145px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #666;
    background: #f3f3f3;
    color: #222;
}

.nav-outline {
    background: #f3f3f3;
    color: #222;
}

.nav-orange {
    background: #f8a000;
    color: #fff;
    border-color: #d58b00;
}

.nav-blue {
    background: #4b56b8;
    color: #fff;
    border-color: #39439b;
}

.main-content {
    flex: 1;
    padding: 35px 20px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #efefef;
}

.content-box {
    width: 100%;
    max-width: 620px;
    text-align: center;
    margin-top: 10px;
}

.page-title {
    font-size: 30px;
    font-weight: 700;
    color: #3a3a3a;
    margin: 15px 0 42px;
}

.form-wrap {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 160px 20px 1fr;
    align-items: start;
    margin-bottom: 14px;
    text-align: left;
}

.form-row label {
    font-size: 16px;
    color: #222;
    padding-top: 10px;
}

.form-row .colon {
    text-align: center;
    font-size: 18px;
    padding-top: 8px;
    color: #222;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid #c6c6c6;
    border-radius: 6px;
    background: #f2f2f2;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
}

.form-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #fff 50%),
        linear-gradient(135deg, #fff 50%, transparent 50%),
        linear-gradient(to right, #1f7ae6, #1f7ae6);
    background-position:
        calc(100% - 16px) calc(1em + 1px),
        calc(100% - 11px) calc(1em + 1px),
        0 0;
    background-size:
        5px 5px,
        5px 5px,
        100% 100%;
    background-repeat: no-repeat;
    color: #fff;
    border: none;
    padding-right: 40px;
    height: 36px;
}

.form-select option {
    color: #222;
    background: #fff;
}

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

.btn-submit-wrap {
    text-align: center;
    margin-top: 26px;
}

.btn-blue {
    border: none;
    background: #1f7ae6;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    min-width: 135px;
}

.btn-purple {
    border: none;
    background: linear-gradient(90deg, #8a63f6, #9e6ff3);
    color: #fff;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 16px;
    cursor: pointer;
    min-width: 130px;
}

.notice,
.error-box,
.success-box {
    max-width: 430px;
    margin: 0 auto 18px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.notice {
    background: #eef5ff;
    border: 1px solid #a7c6f4;
    color: #244d7d;
}

.error-box {
    background: #ffeaea;
    border: 1px solid #f1b0b0;
    color: #a12626;
}

.success-box {
    background: #ebfff1;
    border: 1px solid #9fd3af;
    color: #22653a;
}

.footer {
    border-top: 1px solid #444;
    text-align: center;
    padding: 26px 10px 34px;
    background: #efefef;
}

.footer p {
    margin: 0;
    font-size: 18px;
    color: #444;
}

@media (max-width: 900px) {
    .topbar {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .topbar-left,
    .topbar-right {
        justify-content: center;
    }

    .topbar-right {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .form-row .colon {
        display: none;
    }

    .form-row label {
        padding-top: 0;
    }

    .nav-btn {
        min-width: 130px;
        height: 48px;
        font-size: 14px;
    }

    .logo-kkhl {
        width: 120px;
    }
}