/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Body Styling */
  body {
    font-family: Arial, sans-serif;
    background-color: #253646;
    color: white;
  }
  
  /* Header */
  header {
    /* background-color: #333; Dark background for header */
    color: white;
    padding: 1rem;
    text-align: center;
  }

  hr{
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .signup_option{
    color: white;
    padding: 1rem;
    text-align: center;
  }
  
  /* Main Content Layout */
  .main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-direction: column;
    overflow-y: auto;
    gap: 20px; /* Space between cards */
    padding: 20px; /* Add padding to avoid edge touching */
  }
  
  /* Card Style */
  .card {
    background-color: #4a5461;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    width: 975px;
    text-align: center; /* Optional, if you want content centered in card */
    color: white;
  }
  
  .card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Styling for elements within the card to align side by side */
.card > .form-row {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between input fields */
}

.input {
    background-color: #253646;
    color: white;
    border: 1px solid #fff;
    border-radius: 100px;
    padding: 10px;
    font-size: 16px;
    width: 100%; /* Makes input fields equal width */
    outline: none;
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container h4 {
    margin: 0;
    font-size: 14px;
    color: white;
}
  
  /* Button styling */
  .button-container {
    display: flex;
    gap: 15px; /* Space between buttons */
    justify-content: flex-start; /* Optional: Aligns buttons to the left */
    margin-top: 20px;
}

  .button {
    background-color: #253646;
    color: white;
    border: solid white 1px;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
    margin: 5px; /* Space between buttons */
}

/* Styling for the selected button */
.button.selected {
    background-color: white;
    color: #253646;
}

/* Container styling to center the buttons */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.button:hover {
    background-color: rgb(222, 215, 215);
    color: #253646;
}

.input, .dropdown {
    background-color: #ffffff;
    color: rgb(25, 24, 24);
    /* color: #888; */
    border: 1px solid #fff;
    border-radius: 2px;
    padding: 10px;
    font-size: 16px;
    margin: 10px 0;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
    min-height: 50px;
}

.input::placeholder,
.dropdown option {
    color: rgb(25, 24, 24); /* Lighter color for placeholder text */
}

/* Input and dropdown focus styling */
.input:focus, .dropdown:focus {
    border-color: #fff;
}

.hideme{
    display: none;
}

/* Input container styling */
.input-container {
    position: relative;
    width: 100%;
    /* margin-bottom: 20px; */
  }
  
  /* Input field styling */
  .input {
    width: 100%;
    padding: 20px 10px 5px; /* Adjust padding to make space for the label */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    /* background-color: transparent; */
    box-sizing: border-box;
  }
  
  /* Placeholder label inside input */
  .placeholder-label {
    position: absolute;
    top: 25px; /* Inside the top-left corner */
    left: 12px;
    font-size: 16px;
    color: rgb(25, 24, 24);
    pointer-events: none; /* Prevent interaction */
    transition: 0.2s ease all;
    background-color: transparent; /* Ensure no overlap issues */
    padding: 0 5px; /* Optional padding */
  }
  
  /* Float the label when input is focused or filled */
  .input:focus + .placeholder-label,
  .input:not(:placeholder-shown) + .placeholder-label {
    top: 12px; /* Float to the upper-left corner */
    left: 8px;
    font-size: 12px;
    color: #253646;
  }


/* Media Query for Small Screens (max-width: 768px) */
@media (max-width: 768px) {
  /* General Layout Adjustments */
  body {
    font-size: 14px; /* Slightly smaller font size */
    padding: 10px; /* Reduce body padding for smaller screens */
  }

  .main-content {
    padding: 10px; /* Reduce padding */
    gap: 15px; /* Adjust spacing */
  }

  /* Card Styling */
  .card {
    width: 100%; /* Use full width for cards on small screens */
    padding: 15px; /* Reduce padding inside cards */
  }

  .card h2 {
    font-size: 1rem; /* Smaller headings */
  }

  .card p {
    font-size: 0.9rem; /* Smaller paragraph text */
  }

  /* Form Row (Stack Inputs Vertically) */
  .card > .form-row {
    flex-direction: column; /* Stack inputs vertically */
    gap: 10px; /* Reduce space between inputs */
  }

  /* Buttons */
  .button-container {
    flex-direction: column; /* Stack buttons vertically */
    align-items: stretch; /* Ensure buttons take full width */
    gap: 10px; /* Adjust gap between buttons */
  }

  .button {
    width: 100%; /* Full-width buttons for mobile */
  }

  /* Inputs */
  .input {
    font-size: 14px; /* Smaller font for inputs */
    padding: 8px; /* Reduce padding */
  }

  .placeholder-label {
    font-size: 14px; /* Adjust label size */
  }
  
  #signup_warning {
    text-align: center !important;
  }
}

/* Media Query for Extra Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  header {
    font-size: 1rem; /* Smaller header text */
  }

  .card {
    padding: 10px; /* Even smaller padding */
    border-radius: 5px; /* Reduce border radius for a simpler look */
  }

  .input {
    padding: 6px; /* Compact input padding */
  }

  .button {
    font-size: 14px; /* Smaller button text */
    padding: 8px 15px; /* Compact button padding */
  }

  .checkbox-container h4 {
    font-size: 12px; /* Adjust checkbox text size */
  }
  
  #signup_warning {
    text-align: center !important;
  }
}
