

.image-container {
  max-width: 512px;
  margin: 0 auto;
}

.top-image {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.calculator-container {
    position: relative;
    background: #fff;
    max-width: 512px;
    margin: auto;
    padding: 1.5rem;
    border-radius: 0rem 0rem 2rem 2rem;
    border: 1px solid #ccc;
    box-shadow: 0px 10px 30px -10px rgba(0, 0, 0, 0.8);
}

.calculator-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inputs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.input-block {
  flex: 1;
  min-width: 45%;
}

.input-block label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.input-block input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  text-align: center;
}

.gender-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gender-btn {
  flex: 1;
  padding: 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  background-color: #ccc;
}

.gender-btn.active {
  background-color: #facc15;
  color: #000;
}

.divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.divider .line {
  width: 2px;
  height: 3rem;
  background-color: #aaa;
}

.divider .heart {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.submit-container input[type="submit"],input[type="button"] {
  padding: 0.5rem 2rem;
  font-weight: bold;
  background-color: #b45309;
  color: #fff;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}


.submit-container input[type="submit"]:hover,input[type="button"]:hover {
  background-color: #f59e0b;
}


@media (max-width: 768px) {
  .inputs-container {
    flex-direction: column;
  }

  .input-block {
    min-width: 100%;
  }

  .divider {
    display: none;
  }
}

/* Hide form after submission */
#image-container, #form-container {
  transition: opacity 0.5s ease, transform 0.4s ease;
}

#image-container[style*="display:none"], 
#form-container[style*="display:none"] {
  opacity: 0;
  transform: translateY(-10px);
}


.result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 2rem 1rem;
  margin-top: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease;
}

.result-container h3 {
  font-size: 1.25rem;
  color: #b45309;
  margin-bottom: 0.5rem;
}

.names {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

.names .highlight {
  color: #d32f2f;
  font-weight: bold;
}

.progress-wrapper {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.progress-circle {
  width: 140px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: conic-gradient(#10b981 0%, rgba(16,185,129,0.15) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  font-weight: bold;
  font-size: 1.4rem;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
  transition: background 0.3s ease;
}

.slogan {
  opacity: 0;
  color: #b91c1c;
  font-style: italic;
  font-weight: 500;
  margin-top: 1rem;
  font-size: 1.1rem;
  transition: opacity 0.6s ease;
}
.go-back{
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slogan.visible {
  opacity: 1;
}

.go-back.visible{
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Section Headers */
.section-header {
    background-color: #d1d5db;
    padding: 12px;
    font-weight: bold;
    margin-top: 56px;
    border-radius: 8px;
}

.section-header h2,
.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Content Text */
.content-text {
    margin-top: 16px;
    color: #374151;
    font-size: 1.25rem;
    text-align: left;
    line-height: 1.7;
}

/* Ad Container */
.ad-container {
    margin: 56px 0;
}

/* Examples Section */
.examples-section {
    margin: 40px auto;
    max-width: 48rem;
}

.examples-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Examples Table */
.examples-table {
    width: 100%;
    max-width: 48rem;
    border: 1px solid #1d4ed8;
    margin: 0 auto;
    font-size: 1.125rem;
    border-collapse: collapse;
}

.examples-table thead {
    background-color: #2563eb;
}

.examples-table th {
    padding: 8px 16px;
    border: 1px solid #1d4ed8;
    color: white;
    text-align: left;
    font-weight: 600;
}

.examples-table td {
    padding: 8px 16px;
    border: 1px solid #1d4ed8;
    color: #1f2937;
}

.examples-table .alt-row {
    background-color: #dbeafe;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-text {
        font-size: 1.125rem;
    }
    
    .examples-table {
        font-size: 1rem;
    }
    
    .examples-table th,
    .examples-table td {
        padding: 6px 12px;
    }
    
    .examples-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .examples-table {
        font-size: 0.875rem;
    }
    
    .examples-table th,
    .examples-table td {
        padding: 4px 8px;
    }
    
    .section-header h2,
    .section-header h3 {
        font-size: 1.125rem;
    }
}

/* Additional spacing for better readability */
.examples-section {
    margin-bottom: 40px;
}