* { box-sizing: border-box; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f0f4f8;
  margin: 0;
  padding: 0;
  color: #333;
}

h1, h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
  background-color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
th, td { border: 1px solid #ccc; padding: 12px; text-align: center; }
th { background-color: #3498db; color: white; font-weight: bold; }
tr:nth-child(even) { background-color: #f2f2f2; }

a { color: #2980b9; text-decoration: none; }
a:hover { text-decoration: underline; color: #1f618d; }

button.small, a.button-small {
  font-size: 14px; padding: 4px 8px; margin-left: 5px;
  background-color: #f39c12; color: white;
  border: none; border-radius: 4px; cursor: pointer;
}
button.small:hover, a.button-small:hover { background-color: #d68910; }

header {
  background: linear-gradient(135deg, #003366 0%, #004080 60%, #0066cc 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  margin: 0; padding: 0; width: 100%;
}

.admin-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 15px;
  background: rgba(0,0,0,0.15);
}
.admin-bar a {
  margin-left: 8px; color: #fff;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 5px 14px; border-radius: 20px;
  text-decoration: none; font-size: 13px;
  transition: background 0.2s;
}
.admin-bar a:hover { background: rgba(255,255,255,0.35); }

.header-inner {
  display: flex; flex-direction: row;
  align-items: center; justify-content: center;
  gap: 20px; padding: 15px 20px 20px 20px;
}
.header-inner img {
  height: 90px; width: 90px;
  object-fit: contain; flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  background: #fff; padding: 3px;
}
.header-inner h1 {
  margin: 0; text-align: center;
  font-size: 23px; line-height: 1.7; color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

main {
  padding-top: 20px;
}

.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 600px;
}
.alert-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}
.alert-error {
  color: #721c24;
  font-size: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 600px;
  border-radius: 8px;
}
.alert-error.show {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  padding: 15px 20px;
  max-height: 80px;
  opacity: 1;
  margin: 20px auto;
}

#countdown {
  text-align: center;
  margin: 20px auto 25px;
  max-width: 600px;
}
.countdown-label {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.countdown-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}
.cd-number {
  font-size: 32px;
  font-weight: 500;
  color: #003366;
  line-height: 1;
}
.cd-label {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}
.cd-sep {
  font-size: 24px;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 14px;
}
.form-container {
  margin: 0 auto;
}
.form-container {
  background: #fff; padding: 35px;
  max-width: 600px; margin: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.form-container h2 {
  text-align: center; color: #004080;
  margin-bottom: 10px; font-size: 20px;
}
.form-alert-error {
  color: #721c24;
  font-size: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease;
  margin-bottom: 0;
  padding: 0 15px;
  border-radius: 8px;
}
.form-alert-error.show {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  padding: 12px 15px;
  max-height: 80px;
  opacity: 1;
  margin-bottom: 15px;
}
label {
  display: block; margin-top: 15px;
  font-weight: bold; color: #444; font-size: 14px;
}
input[type="text"], input[type="email"], select {
  width: 100%; padding: 10px 14px; margin-top: 6px;
  border: 1px solid #ccc; border-radius: 8px;
  font-size: 15px; transition: border 0.2s;
}
input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  border-color: #004080; outline: none;
  box-shadow: 0 0 0 3px rgba(0,64,128,0.1);
}
button[type="submit"] {
  width: 100%; padding: 12px; margin-top: 20px;
  background: linear-gradient(135deg, #28a745, #20c050);
  color: #fff; font-size: 16px; font-weight: bold;
  cursor: pointer; border: none; border-radius: 8px;
  box-shadow: 0 3px 8px rgba(40,167,69,0.3);
  transition: background 0.2s, transform 0.1s;
}
button[type="submit"]:hover {
  background: linear-gradient(135deg, #218838, #1aab42);
  transform: translateY(-1px);
}
.note { font-size: 13px; color: #888; margin-top: 12px; text-align: center; }

footer {
  background: linear-gradient(180deg, #002855 0%, #003875 100%);
  color: #fff;
  padding: 0;
  margin-top: 40px;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 30px 40px;
  max-width: 1000px;
  margin: auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  min-width: 130px;
}
.footer-brand img {
  height: 80px; width: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: #fff; padding: 3px;
  object-fit: contain;
}
.footer-brand h3 {
  margin: 0; font-size: 12px; color: #fff;
  line-height: 1.4; text-align: center; font-weight: bold;
}
.footer-info {
  flex: none;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 30px;
}
.footer-info p {
  margin: 6px 0; font-size: 13px;
  color: rgba(255,255,255,0.85); line-height: 1.7;
}
.footer-info a { color: #99ccff; text-decoration: none; }
.footer-info a:hover { text-decoration: underline; color: #fff; }
.footer-bottom {
  text-align: center; padding: 10px; font-size: 13px;
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-bottom strong { color: #99ccff; }

@media (max-width: 768px) {
  .header-inner h1 { font-size: 20px; }
  .header-inner img { height: 80px; width: 80px; }
  .footer-main { padding: 20px 25px; gap: 20px; }
  .footer-info { padding-left: 20px; }
  .footer-info p { font-size: 12px; }
  .countdown-timer { padding: 12px 18px; gap: 6px; }
  .cd-number { font-size: 24px; }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    padding: 12px 15px 18px;
    gap: 10px; text-align: center;
  }
  .header-inner img { height: 65px; width: 65px; }
  .header-inner h1 { font-size: 16px; line-height: 1.6; }
  .admin-bar a { font-size: 12px; padding: 4px 12px; }
  .alert { max-width: 100%; margin: 15px 10px; }
  .form-container { padding: 25px 20px; }
  main { padding: 15px; }
  .footer-main {
    flex-direction: column;
    padding: 20px 15px;
    gap: 15px; text-align: center;
  }
  .footer-brand {
    flex-direction: row; text-align: left;
    gap: 12px; min-width: unset;
  }
  .footer-brand h3 { text-align: left; font-size: 13px; }
  .footer-info {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-left: 0; padding-top: 15px; width: 100%;
  }
  .footer-info p { font-size: 12px; }
  .countdown-timer { padding: 10px 14px; gap: 5px; }
  .cd-number { font-size: 20px; }
  .cd-block { min-width: 35px; }
  .cd-sep { font-size: 18px; }
}

@media (max-width: 480px) {
  .header-inner img { height: 68px; width: 68px; }
  .header-inner h1 { font-size: 15px; line-height: 1.55; }
  .form-container { padding: 20px 15px; }
  .form-container h2 { font-size: 17px; }
  input[type="text"], input[type="email"], select { font-size: 14px; padding: 9px 12px; }
  button[type="submit"] { font-size: 15px; }
}

@media (max-width: 380px) {
  .admin-bar a { font-size: 11px; padding: 4px 9px; }
  .header-inner img { height: 60px; width: 60px; }
  .header-inner h1 { font-size: 13px; line-height: 1.5; }
  .form-container { padding: 15px 12px; }
  label { font-size: 13px; }
}