@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');
body {
    font-family: 'Kanit', sans-serif;
    background: #fff;
    color: #333;
}

/* Container */
.complaint-container {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(46, 125, 50, 0.15);
    overflow: hidden;
    position: relative;
}

/* Header */
.header-section {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    padding: 40px 32px 32px;
    text-align: center;
    position: relative;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(192, 160, 64, 0.25);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.header-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: rgba(192, 160, 64, 0.15);
    border-radius: 50%;
    transform: translate(-20px, 20px);
}

.complaint-container h1 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.complaint-container .desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Form section */
.form-section {
    padding: 48px 60px;
}

.complaint-container .note {
    font-size: 14px;
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
    color: #2e7d32;
    border: 1px solid #fbc02d;
    border-left: 4px solid #c0a040;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    position: relative;
}

.complaint-container .note::before {
    content: '⚠️';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 16px;
}

/* Grid layout */
.complaint-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    position: relative;
}

.complaint-form label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: #2e7d32;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs */
.complaint-form input,
.complaint-form textarea {
    width: 100%;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    background: #ffffff;
    font-family: 'Kanit', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.complaint-form input:focus,
.complaint-form textarea:focus {
    border-color: #2e7d32;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
    transform: translateY(-1px);
}

.complaint-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Captcha */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
}

/* Submit */
.submit-section {
    margin-top: 8px;
}

.complaint-form button[type=submit] {
    width: 100%;
    background: linear-gradient(135deg, #c0a040 0%, #8d6e00 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 14px;
    border: none;
    padding: 16px 0;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(192, 160, 64, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.complaint-form button[type=submit]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.complaint-form button[type=submit]:hover {
    background: linear-gradient(135deg, #8d6e00 0%, #6d4c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(192, 160, 64, 0.4);
}

.complaint-form button[type=submit]:hover::before {
    left: 100%;
}

.complaint-form button[type=submit]:active {
    transform: translateY(0);
}

/* Accent elements */
.accent-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #c0a040;
    border-radius: 50%;
    top: 20px;
    right: 40px;
}

.accent-line {
    position: absolute;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #c0a040, #8d6e00);
    bottom: 20px;
    left: 40px;
    border-radius: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .complaint-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .form-group.full-width {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .complaint-container {
        margin: 20px auto;
        border-radius: 20px;
    }
    .header-section {
        padding: 32px 24px 24px;
    }
    .form-section {
        padding: 32px 24px;
    }
    .complaint-container h1 {
        font-size: 24px;
    }
    .g-recaptcha {
        transform: scale(0.8);
    }
}
/* 🌙 Dark Mode */
body.dark-mode {
  background: #121212;
  color: #e0e0e0;
  font-family: 'Kanit', sans-serif;
}

/* Container */
body.dark-mode .complaint-container {
  background: #1e1e1e;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid #2e7d32;
}

/* Header */
body.dark-mode .header-section {
  background: linear-gradient(135deg, #263238 0%, #1b5e20 100%);
}

body.dark-mode .header-section::before {
  background: rgba(192, 160, 64, 0.1);
}
body.dark-mode .header-section::after {
  background: rgba(192, 160, 64, 0.08);
}

body.dark-mode .complaint-container h1 {
  color: #c0a040;
}
body.dark-mode .complaint-container .desc {
  color: rgba(255, 255, 255, 0.7);
}

/* Note box */
body.dark-mode .complaint-container .note {
  background: linear-gradient(135deg, #2e2e2e 0%, #1c1c1c 100%);
  color: #fbc02d;
  border: 1px solid #9c7a2e;
  border-left: 4px solid #c0a040;
}
body.dark-mode .complaint-container .note::before {
  color: #c0a040;
}

/* Labels */
body.dark-mode .complaint-form label {
  color: #c0a040;
}

/* Inputs */
body.dark-mode .complaint-form input,
body.dark-mode .complaint-form textarea {
  background: #121212;
  color: #e0e0e0;
  border: 2px solid #333;
  box-shadow: none;
}

body.dark-mode .complaint-form input:focus,
body.dark-mode .complaint-form textarea:focus {
  border-color: #c0a040;
  background: #1e1e1e;
  box-shadow: 0 0 0 3px rgba(192, 160, 64, 0.3);
}

/* Submit button */
body.dark-mode .complaint-form button[type=submit] {
  background: linear-gradient(135deg, #c0a040 0%, #9c7a2e 100%);
  color: #000;
  box-shadow: 0 4px 20px rgba(192, 160, 64, 0.3);
}

body.dark-mode .complaint-form button[type=submit]:hover {
  background: linear-gradient(135deg, #9c7a2e 0%, #c0a040 100%);
  color: #000;
  box-shadow: 0 8px 30px rgba(192, 160, 64, 0.5);
}

/* Accent */
body.dark-mode .accent-dot {
  background: #c0a040;
}
body.dark-mode .accent-line {
  background: linear-gradient(90deg, #c0a040, #9c7a2e);
}

/* Captcha placeholder */
body.dark-mode .recaptcha-container {
  background: #1a1a1a;
}
