/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600&display=swap');

body {
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #1E3A8A 0%, #0A192F 100%);
    color: #333;
    margin: 0;
    padding: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: white;
    padding: 2em 3em;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 550px;
    box-sizing: border-box;
    text-align: center;
}

h1, h2 {
    color: #0A192F;
    margin-bottom: .5em;
}

p.subtitle {
    color: #6c757d;
    margin-bottom: 2em;
}

.form-group {
    margin-bottom: 1.5em;
    text-align: left;
}

label {
    display: block;
    margin-bottom: .5em;
    font-weight: 600;
    color: #555;
}

input[type=text], .file-input-wrapper {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all .2s ease;
}

input[type=text]:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

.file-input-wrapper {
    background-color: #f8f9fa;
    cursor: pointer;
}

.file-input-wrapper:hover {
    background-color: #e9ecef;
}

input[type=file] {
    display: none;
}

.file-name {
    margin-left: 10px;
    color: #6c757d;
    font-style: italic;
}

.submit-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    font-weight: 600;
    transition: all .2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
}

.thank-you-container .image-preview {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-top: 2em;
    flex-wrap: wrap;
}

.thank-you-container img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

a.back-link {
    display: inline-block;
    margin-top: 2em;
    color: #1E3A8A;
    text-decoration: none;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1em;
    margin-top: 2.5em;
}

.action-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-confirm {
    background-color: #1E3A8A;
    color: white;
}

.btn-confirm:hover {
    background-color: #0A192F;
    transform: translateY(-2px);
}

.btn-edit {
    background-color: #60A5FA;
    color: #ffffff;
}

.btn-edit:hover {
    background-color: #3B82F6;
    transform: translateY(-2px);
}

.btn-upload {
    display: inline-block;
    padding: 10px 15px;
    background-color: #6c757d;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0.5em;
    transition: background-color 0.2s;
}

.btn-upload:hover {
    background-color: #5a6268;
}

/* *** สไตล์ที่เพิ่มเข้ามา *** */
.remove-checkbox {
    margin-top: 0.5em;
    display: block;
    color: #dc3545;
}
