/* ========== Base Reset ========== */
* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff0d8;
  color: #2b2b2b;
  min-height: 100vh;
  display: block;         /* start at top; no vertical centering */
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1000px;
  padding: 1rem;
  margin: 0 auto;
}

.main-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 2rem auto;
}

/* ========== Logo Section ========== */
.logo-section {
  background: #ffffff;
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;   /* phone number above logo */
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-right: 1px solid #ccc;
  min-width: 0;
}

.side-logo { max-width: 100%; height: auto; display: block; }

.phone-number {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #169b62;
  text-align: center;
}
.phone-number a {
  color: #169b62;
  text-decoration: none;
  transition: color 0.3s ease;
}
.phone-number a:hover { color: #e96e00; }
.phone-number i { margin-right: 0.5rem; color: #e96e00; }

/* ========== Form Section (Price Calculator) ========== */
.form-section { 
  flex: 1 1 50%;
  padding: 2rem;
  min-width: 0;
  background: #ffffff;
}

.form-section h1 { 
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #169b62;
}

.form-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #e96e00;
}

.form-section input[type='text'],
.form-section input[type='date'],
.form-section input[type='tel'],
.form-section input[type='number'],
.form-section select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  line-height: 1.2;
  background-color: #ffffff;
  border: 1.8px solid #169b62;
  border-radius: 5px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-section input[type='text']:focus,
.form-section input[type='number']:focus,
.form-section select:focus {
  border-color: #e96e00;
  outline: none;
  box-shadow: 0 0 6px rgba(233, 110, 0, 0.6);
}

.form-section select { cursor: pointer; }

.form-section button {
  background-color: #e96e00;
  border: none;
  color: white;
  padding: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}
.form-section button:hover,
.form-section button:focus { background-color: #b35600; }

.result {
  display: none;
  margin-top: 1.5rem;
  padding: 3rem;
  background: #dff0d8;
  border-radius: 6px;
  font-size: 1.4rem;
  line-height: 1.4;
  color: #169b62;
  min-height: 3rem;
  text-align: center;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.time-note {
  display: block;
  margin-top: 5px;
  color: #555;
  font-size: 0.9em;
  font-style: italic;
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  font-size: 0.9rem;
  color: #2b2b2b;
  font-weight: normal;
  padding: 0.5rem;
  margin-top: 1.5rem;
  width: 100%;
  position: relative;
}
.footer p { margin: 0; }

/* ========== Mobile Styles ========== */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;  /* stack: logo -> form */
    margin: 1rem auto;
    width: 100%;
  }

  .logo-section {
    flex-direction: column;  /* keep phone above logo */
    width: 100%;
    text-align: center;
    border-right: none;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
  }

  .side-logo { width: 90%; max-width: 300px; height: auto; }

  .form-section { width: 100%; padding: 1.5rem 1rem; }

  .form-section h1 { font-size: 1.5rem; }
  .form-section button { font-size: 1rem; }
  .result { padding: 1.5rem; }

  .logo-section .phone-number {
    margin-top: 0;
    font-size: 1.4rem;
    text-align: center;
  }

  .footer {
    font-size: 1rem;
    padding: 1rem;
  }

  /* Floating Contact Buttons (mobile only) */
  .floating-contact-buttons {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    padding-right: 10px;
  }
  .floating-btn {
    background-color: #e96e00;
    color: white;
    border-radius: 50%;
    padding: 12px;
    width: 45px; height: 45px;
    display: flex; justify-content: center; align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
    font-size: 18px;
  }
  .floating-btn:hover { background-color:#b35600; }
  .floating-btn.whatsapp { background-color:#25D366; }
  .floating-btn.email { background-color:#0072c6; }
  .floating-btn.phone { background-color:#ff9800; }
}

/* Desktop: hide floating buttons */
@media (min-width: 769px) {
  .floating-contact-buttons { display: none; }
}