*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --primary:#8b0000;
    --primary-dark:#650000;
    --gold:#d4a017;
    --gold-light:#fff4cf;
    --bg:#fff7e6;
    --text:#262626;
    --muted:#666;
    --border:#dedede;
    --danger:#d10000;
    --success:#008a2e;
    --white:#ffffff;
}

html{
    width:100%;
    overflow-x:hidden;
}

body{
    width:100%;
    min-height:100vh;
    font-family:'Segoe UI', Arial, sans-serif;
    background:linear-gradient(135deg,#fff7e6 0%,#f7f1df 45%,#f4f6ff 100%);
    padding:24px 12px;
    color:var(--text);
    overflow-x:hidden;
}

.header-banner{
    width:100%;
    text-align:center;
    margin:0 auto 16px;
}

.header-banner img{
    /* width:100%;
    max-width:760px; */
    height:auto;
    max-height:220px;
    object-fit:contain;
    display:block;
    margin:0 auto;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(139,0,0,0.12);
}

.container{
    width:100%;
    max-width:650px;
    margin:0 auto;
    background:rgba(255,255,255,0.98);
    padding:28px;
    border-radius:18px;
    box-shadow:0 18px 45px rgba(90,50,0,0.14);
    border:1px solid rgba(139,0,0,0.08);
    border-top:6px solid var(--primary);
}

h2{
    text-align:center;
    margin-bottom:22px;
    font-size:26px;
    line-height:1.25;
    color:var(--primary);
    font-weight:700;
}

.form-group{
    margin-bottom:18px;
}

label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    font-size:15px;
    color:#333;
}

label i{
    color:var(--primary);
    margin-right:8px;
    width:18px;
    text-align:center;
}

.required{
    color:var(--danger);
    font-weight:700;
}

input,
select{
    width:100%;
    min-height:48px;
    padding:13px 14px;
    border:1px solid var(--border);
    border-radius:12px;
    font-size:15px;
    font-family:'Segoe UI', Arial, sans-serif;
    color:#333;
    background:#fafafa;
    transition:all .2s ease;
}

input:hover,
select:hover{
    border-color:#c8a86a;
    background:#fff;
}

input:focus,
select:focus{
    outline:none;
    border-color:var(--primary);
    background:#fff;
    box-shadow:0 0 0 4px rgba(139,0,0,0.10);
}

/* Custom select/dropdown design */
select{
    width:100%;
    padding:14px 45px 14px 14px;
    border:1px solid #d6d6d6;
    border-radius:14px;
    font-size:15px;
    font-weight:500;
    color:#333;
    cursor:pointer;

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    background-color:#fafafa !important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%238b0000' stroke-width='2' d='M3 5l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat:no-repeat !important;
    background-position:right 15px center !important;
    background-size:14px !important;
}

select:focus{
    outline:none;
    border-color:#8b0000;
    background-color:#fff !important;
    box-shadow:0 0 0 4px rgba(139,0,0,0.10);
}

select::-ms-expand{
    display:none;
}

select option{
    color:#333;
    background:#fff;
    font-size:15px;
    padding:10px;
}

button{
    width:100%;
    min-height:50px;
    padding:14px;
    border:none;
    background:linear-gradient(135deg,var(--primary),var(--gold));
    color:#fff;
    border-radius:12px;
    cursor:pointer;
    font-size:17px;
    font-weight:700;
    letter-spacing:.2px;
    box-shadow:0 8px 20px rgba(139,0,0,0.22);
    transition:all .2s ease;
}

button:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 24px rgba(139,0,0,0.28);
    opacity:.96;
}

button:active{
    transform:translateY(0);
}

.error{
    background:#ffe5e5;
    color:#b00000;
    padding:12px 14px;
    margin-bottom:18px;
    border-radius:10px;
    border-left:4px solid #c00000;
    font-size:14px;
}

.success{
    background:#e6ffea;
    color:var(--success);
    padding:12px 14px;
    margin-bottom:18px;
    border-radius:10px;
    border-left:4px solid var(--success);
    font-size:14px;
}

.error-message{
    display:block;
    color:var(--danger);
    font-size:13px;
    margin-top:6px;
    line-height:1.4;
}

.notice-box{
    width:100%;
    max-width:520px;
    margin:12px auto 20px;
    background:linear-gradient(135deg,#fff8e1,#fffdf5);
    border-left:4px solid var(--primary);
    padding:10px 13px;
    border-radius:10px;
    font-size:13px;
    line-height:1.55;
    color:#3b3b3b;
    box-shadow:0 5px 15px rgba(139,0,0,0.07);
}

.notice-box strong{
    font-size:14px;
    color:var(--primary);
}

/* Premium file upload UI */
.file-upload{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    width:100%;
}

.file-upload input[type="file"]{
    width:.1px;
    height:.1px;
    opacity:0;
    overflow:hidden;
    position:absolute;
    z-index:-1;
}

.file-upload label{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:44px;
    padding:11px 16px;
    margin:0;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
    border-radius:12px;
    cursor:pointer;
    font-size:14px;
    font-weight:700;
    box-shadow:0 6px 15px rgba(139,0,0,0.18);
    transition:all .2s ease;
}

.file-upload label:hover{
    background:linear-gradient(135deg,var(--primary-dark),var(--primary));
    transform:translateY(-1px);
}

.file-upload label i{
    color:#fff;
    margin:0;
    width:auto;
}

.file-upload span{
    flex:1;
    min-width:140px;
    color:var(--muted);
    font-size:14px;
    background:#fafafa;
    border:1px dashed #d8c08a;
    border-radius:10px;
    padding:11px 12px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Remove number arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button{
    -webkit-appearance:none;
    margin:0;
}

input[type=number]{
    -moz-appearance:textfield;
}

/* Placeholder */
::placeholder{
    color:#999;
    opacity:1;
}

/* Tablet */
@media (max-width:768px){
    body{
        padding:18px 10px;
    }

    .header-banner img{
        max-width:680px;
        max-height:150px;
    }

    .container{
        max-width:100%;
        padding:24px 20px;
        border-radius:16px;
    }

    h2{
        font-size:23px;
        margin-bottom:20px;
    }

    .notice-box{
        max-width:100%;
        font-size:13px;
    }
}

/* Mobile */
@media (max-width:576px){
    body{
        padding:10px 8px;
    }

    .header-banner{
        margin-bottom:10px;
    }

    .header-banner img{
        max-width:100%;
        max-height:105px;
        border-radius:8px;
    }

    .container{
        padding:18px 14px;
        border-radius:14px;
        border-top-width:5px;
    }

    h2{
        font-size:20px;
        margin-bottom:17px;
    }

    .form-group{
        margin-bottom:15px;
    }

    label{
        font-size:14px;
        margin-bottom:7px;
    }

    input,
    select{
        min-height:45px;
        padding:12px 13px;
        font-size:14px;
        border-radius:10px;
    }

    select{
        padding-right:43px !important;
        background-position:right 13px center;
    }

    button{
        min-height:47px;
        font-size:15px;
        padding:13px;
        border-radius:10px;
    }

    .notice-box{
        padding:9px 11px;
        font-size:12.5px;
        line-height:1.45;
        margin:10px auto 16px;
    }

    .notice-box strong{
        font-size:13px;
    }

    .file-upload{
        display:block;
    }

    .file-upload label{
        width:100%;
        margin-bottom:8px;
        min-height:43px;
    }

    .file-upload span{
        display:block;
        width:100%;
        min-width:100%;
        font-size:13px;
        padding:10px;
    }
}

/* Small Mobile */
@media (max-width:360px){
    body{
        padding:8px 6px;
    }

    .container{
        padding:15px 10px;
    }

    h2{
        font-size:18px;
    }

    input,
    select{
        font-size:13px;
        min-height:43px;
    }

    label{
        font-size:13px;
    }

    .header-banner img{
        max-height:90px;
    }
}
