/* ===================== */
/*        FONTS          */
/* ===================== */
@font-face {
    font-family: 'Cairo';
    src: local('Cairo'), url('../fonts/Cairo.ttf') format("truetype");
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    transition: 0.4s;
}

/* ===================== */
/*      THEME COLORS      */
/* ===================== */
:root {
    --bg: #161B21;
    --text: #fff;
    --card-bg: rgba(22,27,33,0.35);
    --header-bg: rgba(22,27,33,0.35);
    --accent1: #f6ac50;
    --shadow: 0 0 25px rgba(246,172,80,0.3);
    --tank-hero-bg: linear-gradient(135deg, rgba(22,27,33,0.9), rgba(22,27,33,0.95)),
                     url("../images/watertank-bg-dark.jpg") no-repeat center/cover;
    --confirmation-bg: linear-gradient(135deg, #161B21, #1f2732);
    --checkbox-border: #ccc;
    --checkbox-hover-bg: #eee;
    --checkbox-checked-bg: #4caf50;
  --accent-light: #f8b85f;
  --danger-color: #e74c3c;
  --neutral-color: #6c757d;

  --border-radius: 18px;
  --transition: 0.35s ease;
  --bg-page: #f9fafb;
  --text-secondary: #4b5563;
  --card-bg-dark: #1e252e;
}

body.dark-mode {
    --bg: #161B21;
    --text: #fff;
    --card-bg: rgba(22,27,33,0.35);
    --header-bg: rgba(22,27,33,0.35);
    --accent1: #f6ac50;
    --shadow: 0 0 25px rgba(246,172,80,0.3);
    --tank-hero-bg: linear-gradient(135deg, rgba(22,27,33,0.9), rgba(22,27,33,0.95)),
                     url("../images/watertank-bg-dark.jpg") no-repeat center/cover;
    --confirmation-bg: linear-gradient(135deg, #161B21, #1f2732);
        --checkbox-bg: #333;
    --checkbox-border: #666;
    --checkbox-hover-bg: #444;
    --checkbox-checked-bg: #4caf50;
}

body.light-mode {
    --bg: #ffedd6;               /* light background */
    --text: #161B21;             /* dark text for readability */
    --card-bg: #fff3e0;          /* light card background */
    --header-bg: rgba(255,237,214,0.35); /* semi-transparent light header */
    --accent1: #f6ac50;
    --shadow: 0 0 25px rgba(246,172,80,0.3);
    --tank-hero-bg: linear-gradient(135deg, rgba(255, 237, 214, 0.95), rgba(255, 237, 214, 0.9)),
                     url("../images/watertank-bg-light.jpg") no-repeat center/cover;
    --confirmation-bg: linear-gradient(135deg, #ffedd6, #ffe5c4);
}
body.light-mode .hero {
    color: #161B21;
}
/* ===================== */
/*      RESPONSIVE        */
/* ===================== */
@media (max-width: 768px) {
    .header { flex-direction: column; align-items: center; gap: 1rem; }
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .footer-links { flex-direction: column; gap: 0.8rem; }
    .main-section { padding: 2rem 1rem 4rem 1rem; }
    .theme-container { top: 1rem; right: 1rem; }
    .search-box input { width: 90%; }
    .location-bg { width: 90vw; }
}
/* ======================================== */
/*      COMMON FOR SERVICE QUESTIONS        */
/* ======================================== */
.location-bg {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #161B21, #1f2732);
  padding: 2rem;
  position: relative;
}
/* Floating circles */
.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(246,172,80,0.15);
  animation: float 8s infinite ease-in-out;
}
.circle1 { width: 120px; height: 120px; top: 15%; left: 10%; }
.circle2 { width: 200px; height: 200px; bottom: 10%; right: 15%; animation-delay: 2s; }
.circle3 { width: 80px; height: 80px; bottom: 20%; left: 20%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
/* Card */
.location-card {
  background: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 25px;
  box-shadow: 0 0 40px rgba(246,172,80,0.25);
  width: 100%;
  text-align: center;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--accent1);
  color: #161B21;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(246,172,80,0.6);
}

.location-heading {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent1);
}

.location-subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}
/* Select */
.select-wrapper {
  margin-bottom: 1.5rem;
  text-align: right;
}

.select-wrapper label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent1);
}

.location-select {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  border: 2px solid var(--accent1);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.location-select:focus {
  border-color: var(--text);
  box-shadow: 0 0 10px rgba(246,172,80,0.6);
}
.location-select option[value=""] {
    color: rgba(246,172,80,0.7);
}
/* Button */
.location-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  background: var(--accent1);
  color: #161B21;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.location-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(246,172,80,0.9);
}
/* ===================== */
/* Confirmation page */
/* ===================== */
.confirmation-page {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--confirmation-bg);
}

.confirmation-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 0 40px rgba(246,172,80,0.5);
    max-width: 500px;
    animation: fadeIn 0.6s ease-out;
}

.checkmark {
    font-size: 4rem;
    color: var(--accent1);
    margin-bottom: 1rem;
    animation: pop 0.5s ease-out;
}

.confirmation-card h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent1);
}

.confirmation-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

@keyframes pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px);}
    100% { opacity: 1; transform: translateY(0);}
}
/* ===================== */
/*       Messages        */
/* ===================== */
/* Messages Container */
.messages-container {
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 0 15px;
}

/* Default message box */
.alert-message {
    position: relative;
    padding: 15px 25px 15px 20px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Message types */
.alert-message.success {
    background: #f6a94c33; /* light translucent yellow */
    color: #161B21;
    border-left: 5px solid #f6a94c;
}

.alert-message.warning {
    background: #ff6f6133; /* soft reddish */
    color: #161B21;
    border-left: 5px solid #ff6f61;
}

.alert-message.info {
    background: #6cace633; /* soft teal/blue */
    color: #161B21;
    border-left: 5px solid #6cace6;
}

/* Close button */
.alert-message .close-msg {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    color: #161B21;
}

/* Light Mode Overrides */
body.light-mode .alert-message {
    background: #fef9f2;
    color: #161B21;
    border-left-color: #f6a94c;
}

body.light-mode .alert-message.warning {
    background: #fff4e5;
    border-left-color: #f6a94c;
}

body.light-mode .alert-message.success {
    background: #fff9e6;
    border-left-color: #f6a94c;
}

body.light-mode .alert-message.info {
    background: #e6f2ff;
    border-left-color: #6cace6;
}
/* ===================== */
/*       BUTTONS         */
/* ===================== */
.tank-btn {
  font-size: 0.9rem;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  color: #161B21;
  background: linear-gradient(90deg, #f6a94c, #ffc973);
  transition: all 0.3s ease;
}

.tank-btn:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(246,169,76,0.3);
}

/* ====== VARIANTS ====== */
.tank-btn.primary {
  background: var(--accent1);
  color: #161B21;
  box-shadow: 0 0 18px rgba(246,172,80,0.6);
}

.tank-btn.primary:hover {
  box-shadow: 0 0 25px rgba(246,172,80,0.9);
}

.tank-btn.secondary {
  border: 2px solid var(--accent1);
  color: var(--text);
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.tank-btn.secondary:hover {
  background: rgba(246,172,80,0.2);
}

/* ====== LIGHT MODE ====== */
body.light-mode .tank-btn {
  background: linear-gradient(90deg, #f6a94c, #ffd27f);
  color: #161B21;
}

body.light-mode .tank-btn:hover {
  box-shadow: 0 4px 10px rgba(246,169,76,0.15);
}

body.light-mode .tank-btn.primary {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: #fffbe8;
}

body.light-mode .tank-btn.secondary {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #fffbe8;
}

/* ====== EFFECTS ====== */
.tank-btn.primary.glow {
  animation: pulseGlow 1.8s infinite alternate;
}
/* ===================== */
/*       FORMS           */
/* ===================== */
.auth-form .form-group {
    margin-bottom: 1.2rem;
    text-align: right;
}
.auth-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--accent1);
}
.auth-form input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    border: 2px solid var(--accent1);
    background: transparent;
    color: var(--text);
    outline: none;
    transition: 0.3s;
}
.auth-form input:focus {
    border-color: var(--text);
    box-shadow: 0 0 12px rgba(246,172,80,0.6);
}
/* ===================== */
/*       AUTH BUTTONS    */
/* ===================== */
.auth-btn {
  padding: 0.9rem;
  border-radius: 25px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  margin-bottom: 25px;
  transition: 0.3s ease;
  display: block;
  min-width: 50%;
}

/* ====== VARIANTS ====== */
.auth-btn.primary {
  background: var(--accent1);
  color: #161B21;
  box-shadow: 0 0 18px rgba(246,172,80,0.6);
}

.auth-btn.primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(246,172,80,0.9);
}

.auth-btn.secondary {
  background: transparent;
  border: 2px solid var(--accent1);
  color: var(--accent1);
}

.auth-btn.secondary:hover {
  background: rgba(246,172,80,0.2);
  color: var(--text);
}

/* ====== GLOW VARIANTS ====== */
.auth-btn.glow-btn {
  position: relative;
  z-index: 1;
  padding: 0.9rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Primary glow (e.g. logout) */
.auth-btn.primary.glow-btn {
  background: #e63946;
  color: var(--text);
  box-shadow: 0 0 20px rgba(230,57,70,0.6),
              0 0 35px rgba(230,57,70,0.4) inset;
}

.auth-btn.primary.glow-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(230,57,70,0.9),
              0 0 40px rgba(230,57,70,0.7) inset;
}

/* Secondary glow */
.auth-btn.secondary.glow-btn {
  background: transparent;
  border: 2px solid var(--accent1);
  color: var(--accent1);
  box-shadow: 0 0 15px rgba(246,172,80,0.4),
              0 0 25px rgba(246,172,80,0.2) inset;
}

.auth-btn.secondary.glow-btn:hover {
  background: rgba(246,172,80,0.2);
  color: var(--text);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(246,172,80,0.8),
              0 0 40px rgba(246,172,80,0.5) inset;
}

.auth-btn.secondary.glow-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 20px rgba(246,172,80,0.6) inset;
}

/* ====== LAYOUT GROUPS ====== */
.confirmation-card .btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.confirmation-card .btn-group .auth-btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

/* ===================== */
/*       OTHERS          */
/* ===================== */
body.light-mode .detail-container {
  background-color: rgba(14, 17, 23, 0.5); /* soft dark-ish background */
  color: #1a1a1a;                          /* fully opaque text */
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}
.to_bid_container{
    width:90vw
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold, #f5b841);
  border-bottom: 2px solid var(--accent-gold, #f5b841);
  display: inline-block;
  padding-bottom: 6px;
  width: 75%;
  margin-bottom: 15px;

}
body.light-mode .page-title {
  color: #b87416; /* amber gold accent */
  border-bottom-color: #b87416;
}

/* Container */
.confirmation-checks {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column; /* one checkbox per line */
    gap: 1rem;
    text-align: start; /* text aligned naturally */
}

/* Label and checkbox */
.custom-checkbox {
    position: relative;
    padding-left: 35px; /* LTR default */
    padding-right: 35px; /* RTL default */
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    display: block;
    line-height: 1.5;
}

/* RTL handling */
.custom-checkbox[dir="rtl"] {
    padding-right: 35px;
    padding-left: 0;
}

/* Hide native checkbox */
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

/* Custom checkmark */
.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    height: 22px;
    width: 22px;
    background-color: var(--text);
    border: 2px solid var(--checkbox-border);
    border-radius: 5px;
    transition: 0.3s;
}

/* Position for LTR/RTL */
.custom-checkbox:not([dir="rtl"]) .checkmark { left: 0; }
.custom-checkbox[dir="rtl"] .checkmark { right: 0; }

/* Hover */
.custom-checkbox:hover .checkmark { background-color: var(--checkbox-hover-bg); }

/* Checked */
.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--checkbox-checked-bg);
    border-color: var(--checkbox-checked-bg);
}

/* Checkmark indicator */
.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show checkmark when checked */
.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Shape of checkmark */
.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Rules link */
.rules-link {
    color: red;
    text-decoration: underline;
}

/* ===================== */
/*        HERO SECTION     */
/* ===================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #ffa500, #ffb964),
                url('../images/hero-bg.jpg') no-repeat center/cover;
    border-radius: 25px;
    overflow: hidden;
    color: var(--text);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35); /* dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
 /* Chrome, Safari, Edge, Opera */
.location-select::-webkit-inner-spin-button,
.location-select::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.location-select {
    -moz-appearance: textfield;
}

