body {
  margin:0;
  font-family:'Roboto',sans-serif;
  background:linear-gradient(135deg,#e6f2ec,#fff);
  color:#222;
  line-height:1.6;
}

  .form-card { background: #fff; padding: 20px; border-radius: 8px; max-width: 400px; margin: auto; box-shadow: 0 2px 10px rgba(0,0,0,0.1);}
  label { display: block; margin-top: 10px; font-weight: bold; }
  input, select, button { width: 100%; margin-top: 5px; padding: 8px; border-radius: 4px; border: 1px solid #ccc; }
  button { background: #10b981; color: #fff; border: none; cursor: pointer; font-size: 16px; margin-top: 15px; }
  button:hover { background: #059669; }
  .result { margin-top: 15px; padding: 10px; border-radius: 4px; display: none; }
  
  .suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f0f7ff;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.navbar{
  position:sticky;
  top:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 30px;
  background:linear-gradient(to right,#14532d,#166534);
  color:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
  z-index:999;
}

.navbar-links a{
  color:#c7f0d4;
  text-decoration:none;
  margin-left:20px;
  font-weight:500;
  transition:color .3s;
}
.navbar-links a:hover,.navbar-links a.active{
  color:#fff;
  text-shadow:0 0 5px rgba(255,255,255,.5);
}

.hero{
  text-align:center;
  padding:40px 20px 20px;
  background:linear-gradient(to bottom right,#d9f9e3,#f0fff4);
  color:#064e3b;
}
.hero h1{font-size:2.4rem;margin-bottom:10px;}
.hero p{font-size:1.1rem;max-width:600px;margin:0 auto;}


/* Container */
.container.with-side-ads {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap; /* prevents overflow on small screens */
}

/* Form Card */
.form-card {
  flex: 1;
  min-width: 280px; /* prevents too small inputs */
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 14px;
}

/* Row for 2-column layout */
.row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap; /* ensures responsiveness */
}

/* Columns */
.col {
  flex: 1;
  min-width: 120px; /* ensures inputs don't overflow */
}

/* Inputs and selects */
.form-card input,
.form-card select {
  width: 100%;
  padding: 10px 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box; /* fixes overflow */
}

/* Province display box */
.province-box {
  font-weight: bold;
  padding: 5px 10px;
  background: #f5f5f5;
  border-radius: 5px;
}

/* Foreign place initially hidden */
#foreignPlaceDiv {
  display: none;
  margin-top: 10px;
}

/* Buttons */
button {
  margin-top: 15px;
  background: #007bff;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

/* Result box */
.result {
  margin-top: 15px;
  font-weight: bold;
}


.gender-toggle {
  display: flex;
  gap: 5px;
  margin-top: 3px;
}

.gender-btn {
  flex: 1;
  padding: 6px 0;       /* smaller height */
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #e0e0e0;
  cursor: pointer;
  font-weight: bold;
  color: #555;
  font-size: 13px;      /* smaller font */
  transition: all 0.2s ease;
  text-align: center;
}

.gender-btn.active {
  background: #28a745; /* green */
  color: white;
  border-color: #28a745;
}

.gender-btn:hover {
  background: #d5d5d5;
}

.gender-btn.active:hover {
  background: #218838;
}



.container{display:flex;justify-content:center;padding:30px 20px;}
.form-card{
  background:#fff;
  padding:15px 30px;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.1);
  width:100%;
  max-width:700px;
    margin-top: 25px;
}
label{
  font-weight:500;
  display:block;
  margin-top:12px;
  margin-bottom:4px;
  color:#065f46;
}
input,select{
  width:100%;
  padding:10px 14px;
  margin-bottom:12px;
  border:1px solid #d1fae5;
  border-radius:8px;
  font-size:1rem;
  transition:border-color .3s,box-shadow .3s;
}
input:focus,select:focus{
  outline:none;
  border-color:#34d399;
  box-shadow:0 0 0 3px rgba(52,211,153,.3);
}

button{
  background:#10b981;
  color:#fff;
  padding:12px 20px;
  font-size:1rem;
  border:none;
  border-radius:8px;
  cursor:pointer;
  transition:background .3s,transform .2s;
  width:100%;
  margin-top:10px;
}
button:hover{background:#059669;transform:translateY(-1px);}

.result{
  display:none;
  margin-top:20px;
  background:#e6fff1;
  border-left:6px solid #10b981;
  padding:15px;
  border-radius:10px;
  font-size:1rem;
  color:#064e3b;
}

.ads-section{
  background:#f0fdf4;
  color:#065f46;
  font-weight:500;
  font-size:1.1rem;
  text-align:center;
  padding:30px 20px;
  margin:0 auto;
  max-width:800px;
  border-radius:16px;
  box-shadow:0 6px 16px rgba(0,0,0,.05);
}

.side-ad{
  width:160px;
  min-height:300px;
  background:#f0fdf4;
  color:#065f46;
  padding:15px;
  font-weight:500;
  font-size:.95rem;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  text-align:center;
  flex-shrink:0;
}

footer{
  text-align:center;
  padding:20px;
  background:#14532d;
  color:#d1fae5;
  border-top-left-radius:20px;
  border-top-right-radius:20px;
  margin-top:30px;
}
footer p{margin:5px 0;font-size:.95rem;}
.footer-links{margin-top:10px;}
.footer-links a{
  color:#a7f3d0;
  margin:0 10px;
  text-decoration:none;
  font-weight:500;
  transition:color .3s;
}
.footer-links a:hover{color:#fff;text-decoration:underline;}

.with-side-ads{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:20px;
  padding:30px 20px;
  flex-wrap:wrap;
}
@media(max-width:768px){.side-ad{display:none;}}
