* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f2f2f2;
    font-family: "Inter", sans-serif;
}

.spacer {
    padding: 35px 80px;
}

.header-area {
    background-color: #fff;
}

.title-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.title-head {
    min-width: 637px;
    max-width: 637px;
}

.title-head h1 {
    color: #000000;
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-title p {
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 24px;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-list h2 {
    color: #9B7858;
    padding-bottom: 24px;
    padding-top: 0px;
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
}

.form-list .spacer {
    background-color: #fff;
    margin: 12px 80px;
    padding: 32px 40px;
}

.form-area {
    padding-bottom: 24px;
}

.form-area label {
    color: #676767;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    padding-bottom: 8px;
    margin-bottom: 0;
}

.form-area sup {
    font-size: 14px;
    color: #C02F2F;
    font-weight: 400;
}

.form-area .form-control {
    border: 1px solid #C2C2C2;
    border-radius: 8px;
    height: 48px;
}

.form-area select {
    border: 1px solid #C2C2C2;
    border-radius: 8px;
    height: 48px;
}

.form-area p {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
    padding-bottom: 16px;
}

#displaythis {
    display: none;
}

#showthis {
    display: none;
}

.points-area {
    background-color: #F2F0EA;
    padding: 12px 16px;
    display: flex;
    align-items: start;
    margin-bottom: 24px;
}

.points-area li {
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    padding-bottom: 5px;
}

.upload-area {
    border: 1px solid #C2C2C2;
    height: 48px;
    border-radius: 8px;
    align-items: center;
    display: flex;
    position: relative;
    padding: 12px 16px;
}

.upload-area span {
    color: #2964FA;
    font-size: 14px;
    font-weight: 500;
}

.btn-std {
    height: 48px;
    min-width: 230px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #C19D5C;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.btn-std-modal {
    height: 48px;
    min-width: 168px;
    max-width: 168px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #C19D5C;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.success-modal {
    padding: 40px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-modal h5 {
    color: #000000;
    font-size: 32px;
    font-weight: 700;
    padding-top: 32px;
    padding-bottom: 20px;
}

.upload-text {
    position: absolute;
    cursor: pointer;
    top: 10px;
}

.upload-area input {
    opacity: 0;
    z-index: 99;
    position: relative;
    cursor: pointer;
}

#showimage {
    display: none;
}

#showimage img {
    width: 50px;
    height: 45px;
    border-radius: 8px 0 0 8px;
}

#showimage-birth {
    display: none;
}

#showimage-birth img {
    width: 50px;
    height: 45px;
    border-radius: 8px 0 0 8px;
}

#showimage-letter {
    display: none;
}

#showimage-letter img {
    width: 50px;
    height: 45px;
    border-radius: 8px 0 0 8px;
}

.preview-area {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    justify-content: space-between;
    border: 1px solid #C2C2C2;
    border-radius: 8px;
    height: 48px;
}

.primary-area {
    display: flex;
    align-items: center;
}

#filename {
    padding-left: 10px;
    word-break: break-all;
}

#filename-birth {
    word-break: break-all;
    padding-left: 10px;
}

#filename-letter {
    word-break: break-all;
    padding-left: 10px;

}

.guideline-modal .modal-header {
    background-color: #F2F2F2;
    padding: 20px;
    margin-bottom: 25px;
}

.modal-title {
    color: #2A2A2A;
    font-size: 20px;
    font-weight: 500;
}

.modal-detail-area h4 {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
}

.modal-detail-area ul {
    padding-bottom: 24px;
    padding-left: 15px;
    margin-bottom: 0;
}

.modal-detail-area li {
    color: #676767;
    font-size: 12px;
    font-weight: 400;
    padding-bottom: 10px;
    padding-left: 20px;
}

@media (max-width:991px) {
    .title-head {
        min-width: 100%;
        max-width: 100%;
    }

    .form-title {
        flex-direction: column;
    }

    .spacer {
        padding: 20px;
    }

    .form-list .spacer {
        margin: 20px;
        padding: 15px;
    }

    .form-list h2 {
        padding-bottom: 12px;
    }

    .points-area svg {
        display: none;
    }
}

.error {
    color: red;
}

.preview-area svg {
    padding-right: 5px;
}

#myButton {
    cursor: not-allowed;
}

#myButton.enabled {
    cursor: pointer;
}

.loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Category selection styling */
.category-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.category-section label {
    color: #9B7858;
    font-weight: 600;
}

.form-check-input:disabled + .form-check-label {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-check-input:disabled {
    cursor: not-allowed;
}