/* General */
body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1;
    background-color: #fff;
}

/* Header & Footer */
header {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    font-size: 0.8em;
    color: #777;
    background-color: #f0f0f0;
    border-top: 1px solid #eee;
}

/* Form Title */
h1 {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 40px;
}

/* Form elements */
.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.required,
.optional {
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

.required {
    background-color: #e53935;
}

.optional {
    background-color: #777;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: /*#00a53c*/#0066CC;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 165, 60, 0.3);
}

.download-link {
    display: inline-block;
    margin-bottom: 10px;
    color: /*#00a53c*/#0066CC;
    text-decoration: none;
    font-weight: bold;
}

.download-link:hover {
    text-decoration: underline;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.checkbox-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input {
    margin-right: 5px;
}

/* File Attachment Area */
#drop-zone {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    color: #777;
    transition: all 0.2s;
}

#drop-zone:hover,
#drop-zone.dragover {
    border-color: /*#00a53c*/#0066CC;
    background-color: #f2faf5;
}

#file-input {
    display: none;
}

#file-preview {
    margin-top: 15px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
}

#file-list {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

#file-list li {
    background-color: #f9f9f9;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-file {
    color: #d9534f;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    font-size: 1.3em;
}

#size-stats {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9em;
}

#size-stats .error {
    color: #d9534f;
    font-weight: normal;
    display: block;
    margin-top: 8px;
}

#size-gauge-container {
    width: 100%;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    display: none;
}

#size-gauge-bar {
    height: 100%;
    width: 0%;
    background-color: /*#00a53c*/#0066CC;
    border-radius: 6px;
    transition: width 0.3s, background-color 0.3s;
}

#size-gauge-bar.overlimit {
    background-color: #d9534f;
}

/* Privacy Policy */
.privacy-policy {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 5px;
}

.privacy-policy p {
    margin-bottom: 15px;
}

.privacy-policy a {
    color: /*#00a53c*/#0066CC;
}

.agree-label {
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.agree-label input {
    width: 1.2em;
    height: 1.2em;
    margin-right: 10px;
}

/* Buttons */
button,
.button-back {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: /*#00a53c*/#0066CC;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

button:hover:not(:disabled),
.button-back:hover {
    background-color: #008430;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.sub-button {
    width: auto;
    padding: 8px 15px;
    background-color: #777;
    font-size: 14px;
    display: inline-block;
    font-weight: normal;
}

.sub-button:hover {
    background-color: #555;
}

.button-group {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* Confirm & Complete Page */
.confirm-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.confirm-group h3 {
    margin-bottom: 5px;
    font-size: 1em;
    color: #555;
}

.confirm-group p {
    margin: 0;
    font-size: 1.1em;
    white-space: pre-wrap;
    word-break: break-all;
}

.complete-button-container {
    margin-top: 40px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Upload Overlay */
#upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    text-align: center;
}

.overlay-content {
    background-color: #333;
    padding: 30px 50px;
    border-radius: 10px;
}

.progress-bar-container {
    width: 300px;
    height: 20px;
    background-color: #555;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}

#upload-progress-bar {
    width: 0%;
    height: 100%;
    background-color: /*#00a53c*/#0066CC;
    border-radius: 10px;
    transition: width 0.2s;
}
