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

body {
    background-color: #000;
    font-family: 'Sarabun', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: #0d1b2e;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Header */
.party-header {
    text-align: center;
    padding: 0;
    position: relative;
}

.party-header .header-logo {
    width: 100%;
    height: auto;
    display: block;
}

.party-header .header-flags {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -5px;
}

/* Content */
.party-content {
    padding: 20px 30px;
}

/* Form Labels */
.form-label {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Input with icon image */
.input-with-icon {
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.input-with-icon .input-icon-wrap {
    width: 55px;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffd700;
    padding: 8px;
}

.input-with-icon .input-icon-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.input-with-icon .form-control {
    border: none;
    border-radius: 0;
    font-size: 1rem;
    padding: 14px 15px;
    flex: 1;
}

.input-with-icon .form-control:focus {
    box-shadow: none;
}

/* Consent - checkbox inline with text */
.consent-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
}

.consent-wrap .consent-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #ffd700;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    margin-top: 2px;
    position: relative;
}

.consent-wrap .consent-checkbox:checked {
    background-color: #ffd700;
}

.consent-wrap .consent-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 7px;
    height: 12px;
    border: solid #0d1b2e;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.consent-text {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.5;
    cursor: pointer;
}

.consent-text .highlight {
    color: #ffd700;
}

/* Buttons */
.btn-login-img,
.btn-submit-img {
    display: block;
    margin: 25px auto;
    width: 60%;
    height: auto;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.btn-login-img:hover,
.btn-submit-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.2s;
}

/* Welcome box */
.welcome-box {
    background-color: #ffd700;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-box .welcome-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.welcome-box .welcome-info .welcome-label {
    color: #333;
    font-size: 0.85rem;
}

.welcome-box .welcome-info .welcome-name {
    color: #0d1b2e;
    font-size: 1.05rem;
    font-weight: 700;
}

.welcome-box .welcome-info .welcome-email {
    color: #333;
    font-size: 0.85rem;
}

/* Section titles */
.section-title {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-note {
    color: #ff6b6b;
    font-size: 0.8rem;
}

/* Custom Radio & Checkbox */
.form-check {
    margin-bottom: 14px;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-check-input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.form-check-input[type="radio"]:checked {
    border-color: #ffd700;
    background: transparent;
}

.form-check-input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffd700;
}

.form-check-input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #ffd700;
    border-color: #ffd700;
}

.form-check-input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 7px;
    height: 12px;
    border: solid #0d1b2e;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.form-check-label {
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Thank You */
.thankyou-box {
    background-color: #ffd700;
    color: #0d1b2e;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Footer image */
.party-footer {
    width: 100%;
    position: relative;
    margin-top: 20px;
}

.party-footer img {
    width: 100%;
    height: auto;
    display: block;
}

/* Alert */
.alert-danger {
    background-color: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
    font-size: 0.9rem;
}

/* QR Code Card */
.qr-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
}

.qr-image-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.qr-image {
    width: 220px;
    height: 220px;
}

.qr-instruction {
    color: #0d1b2e;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* Detail Card */
.detail-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
}

.detail-value {
    color: #fff;
    font-size: 0.9rem;
    text-align: right;
}

.qr-back-link {
    color: #ffd700;
    font-size: 0.9rem;
    text-decoration: underline;
}
