/* สำหรับหน้าแรก */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('image/imagesBG.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9);
    padding: 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 20px 0;
}

.hero-button {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border: 3px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
}

.hero-button:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.7), 0 0 40px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* สำหรับฟอร์ม */
form {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    text-align: left;
    max-width: 850px;
    margin: 90px auto;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    color: black;
}

label {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

input[type="text"] {
    font-size: 1.2rem;
    padding: 10px;
    margin-bottom: 20px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ส่วนเลือกประเภท */
#type {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#type label {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    gap: 10px;
    margin-bottom: 10px;
}

#type input[type="radio"] {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    appearance: none;
    border: 2px solid #ccc;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
}

#type input[type="radio"]:checked {
    background-color: #00cc66;
    border: 6px solid #00cc66;
}

/* ปุ่มส่งฟอร์ม */
.form-button {
    font-size: 1.3rem;
    padding: 15px 30px;
    background: rgba(0, 0, 255, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto 0;
}

.form-button:hover {
    background: rgba(0, 0, 255, 1);
    transform: scale(1.05);
}

/* สำหรับ Success Page */
.success-content {
    max-width: 700px;
    margin: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.success-highlight {
    font-weight: bold;
    color: green;
    text-decoration: underline;
}

/* ปุ่มกลับหน้าแรก */
.return-button {
    display: inline-block;
    font-size: 1.5rem;
    padding: 15px 30px;
    background: rgba(0, 0, 255, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.return-button:hover {
    background: rgba(0, 0, 255, 1);
    transform: scale(1.05);
}

/* สำหรับปุ่ม Export */
#exportButton {
    font-size: 1.5rem;
    padding: 10px 20px;
    color: #fff;
    background-color: green;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 128, 0, 0.5);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#exportButton:hover {
    background-color: darkgreen;
    transform: scale(1.1);
}
