/* moderndesignupgrade.css */
body {
    font-family: Arial, sans-serif;
    width: 100%;
    margin: 0 auto;
    padding-top: 0.5%;
}
h1 {
    text-align: center;
    margin: 5% 0; /* Add top and bottom margins */

}

.container {
    padding: 0 5%; /* Add 5% padding to the left and right */
    max-width: 600px; /* Maximum width */
    margin: auto; /* Center the container */
}

#byodFields, #newPhoneFields {
background-color: #f2f2f2; /* Light grey background */
padding: 15px;
border-radius: 10px; /* Slightly rounded corners for aesthetics */
margin-bottom: 20px; /* Space below the section */
}

/* This will also ensure that the red border from validation is visible */
input:required:invalid {
border: 2px solid red;
background-color: #fff; /* White background to make the red border stand out */
}

/* You might want to ensure the valid input stands out as well */
input:required:valid {
border: 2px solid green;
background-color: #f2f2f2; /* Light grey background to match the section */
}



.form-group {
    margin-bottom: 3%;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5%;
text-align: center;
}
input[type="text"], input[type="email"] {

    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 40px;
    width: calc(100% - 15%); /* Adjust width to account for border */
    margin: 0 auto; /* Centers the button */
margin-bottom: 1%;
  display: block; /* Needed along with margin: 0 auto; to center */
}

.btn {
    background-color: #4C68D7; /* Blue color */
    color: white;
    padding: 10px 20px;
    border: 2px solid black; /* Black border */
    border-radius: 20px; /* Increased border radius */
    cursor: pointer;
    outline: none;
    width: calc(100% - 24px); /* Adjust width to account for border */
    margin: 0 auto; /* Centers the button */
margin-bottom: 2%;
  display: block; /* Needed along with margin: 0 auto; to center */
}

.btn.active {
    background-color: #3B4B9D; /* Darker blue for active state */
}

/* Hover effect for buttons */
.btn:hover {
    background-color: #365A9C;
}

/* Remove styles from radio buttons */
input[type="radio"] {
    display: none;
}

/* Style for labels associated with radio buttons to look like buttons */
label.btn {
    cursor: pointer;
    display: inline-block;
    margin-right: 10px; /* Space between label buttons */
}

/* Adjust form submit button */
.form-group button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 20px; /* Increased border radius */
    cursor: pointer;
    font-size: 16px;
}

.form-group button:hover {
    background-color: #45a049;
}

.hidden {
    display: none;
}

.form-group .next-button {
      background-color: #4CAF50; /* Green color for Next button */
      color: white;
      padding: 10px;
      margin-top: 10px;
      border: none;
      border-radius: 20px;
      cursor: pointer;
      font-size: 16px;
  }
  .form-group .next-button:hover {
      background-color: #45a049;
  }

/* Additional styles for centering the submit button */
.form-group.submit-group {
display: flex;
justify-content: center;
align-items: center;
}

/* Style for outlining required fields in red */
input:required:invalid {
   border: 2px solid red;
}

/* Style for when the input becomes valid */
input:required:valid {
   border: 2px solid green;
}


.container {
/* ... existing styles ... */
border: 2px solid #ddd; /* Add a light grey border */

}

.form-group {
/* ... existing styles ... */
border-bottom: 1px solid #ddd; /* Add a light grey bottom border */
padding-bottom: 1%; /* Add some padding at the bottom */
}

/* To ensure the last .form-group doesn't have a border-bottom */
.form-group:last-child {
border-bottom: none;
}

/* New style for the submit button wrapper to add top border */
.form-group.submit-group {
border-top: 1px solid #ddd; /* Add a light grey top border */
padding-top: 20px; /* Add some padding at the top */
}

/* Modern Design Upgrade CSS */

/* General background */
body {
background-color: #000; /* Black background outside the form area */
}

/* Form background - resembling a smartphone */
.container {
background-color: #f2f2f2; /* Light grey background for the form area */
padding: 20px;
border-radius: 25px; /* Rounded corners for the smartphone shape */
box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Adding depth with shadow */
border: 5px solid #555; /* Solid border to mimic a phone's edge */
max-width: 500px; /* Maximum width to resemble a smartphone width */
margin: auto; /* Center the form container */
}

/* Button styles */
.btn {
background-color: #4CAF50; /* Green color for buttons */
color: white;
border-radius: 15px; /* Slightly rounded buttons */
}

.btn:hover {
background-color: #45a049; /* Darker green on hover */
}

/* Input fields styles */
input[type="text"], input[type="email"] {
border: 1px solid #ccc; /* Default border color */
background-color: #fff; /* White background for input fields */
border-radius: 15px; /* Slightly rounded input fields */
}

/* Submit button specific styles */
.form-group.submit-group button {
width: auto;
padding: 10px 20px;
margin: 20px 0; /* Extra space at the bottom */
border-radius: 15px; /* Slightly rounded submit button */
}

/* Border and line styles for each input field group */
.form-group {
border-bottom: 1px solid #ddd; /* Light grey line below each form group */
padding-bottom: 15px;
margin-bottom: 15px;
}

/* Last form-group doesn't have a border at the bottom */
.form-group:last-child {
border-bottom: none;
padding-bottom: 0;
margin-bottom: 0;
}

/* Required field border color */
input:required:invalid {
border-color: red;
}

input:required:valid {
border-color: green;
}
/* General Styles */
body, html {
  margin: 0;
  padding: 0;
  background: black; /* Black background outside the form */
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* moderndesignupgrade.css */

/* Existing styles... (do not copy this line) */

/* Smartphone screen with 3D effect and multiple layers */
.form-container {
  position: relative;
  background: #f0f0f0; /* Main screen background */
  border-radius: 36px; /* Outermost rounded corners */
  padding: 20px;
  /* Layered shadows for depth */
  box-shadow:
    0 0 0 4px #fff, /* White border */
    0 0 0 8px #bdbdbd, /* Light grey border */
    0 12px 24px rgba(0, 0, 0, 0.7); /* Drop shadow */
  /* ...other styles... */
}

/* Microphone-like element on top */
.form-container:before {
  content: '';
  position: absolute;
  top: -24px; /* Adjust to place it above the container */
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #666;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Centered 'speaker' element */
.form-container:after {
  content: '';
  position: absolute;
  top: -12px; /* Adjust to place it right above the container */
  left: 50%;
  transform: translateX(-50%);
  width: 60px; /* Speaker width */
  height: 4px; /* Speaker height */
  background: #ccc;
  border-radius: 10px;
}

/* Container inner shadow for inset effect */
.form-container-inner {
  border-radius: 32px; /* Slightly less than .form-container for nested effect */
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* Ensures inner content doesn't overflow the rounded borders */
}

/* Additional styles */
/* ... (your existing styles for inputs, labels, and buttons) ... */

/* Responsive styles */
/* ... (your existing responsive styles) ... */

.phone-wrapper {
  width: max-content;
  margin: auto;
  padding: 16px;
  background-color: #f0f0f0;
  border-radius: 36px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25), /* This is the shadow that needs to be strengthened */
               0px 16px 24px rgba(0, 0, 0, 0.2),
               0px 6px 30px rgba(0, 0, 0, 0.25); /* Middle shadow, already strong */
}
  position: relative;
}

.phone-wrapper:before {
  content: '';
  display: block;
  position: absolute;
  top: -8px; right: -8px; bottom: -8px; left: -8px;
  background: linear-gradient(to right, #ddd 0%, #fff 100%);
  z-index: -1;
  border-radius: 40px;
}

.phone-wrapper:after {
  content: '';
  display: block;
  position: absolute;
  top: -2px; right: -2px; bottom: -2px; left: -2px;
  background: #fff;
  z-index: -2;
  border-radius: 38px;
}

.phone-screen {
  background: #fff;
  border-radius: 32px;
  padding: 20px; /* Adjust as needed */
}

/* To create the microphone notch */
.phone-wrapper::after {
  content: '';
  display: block;
  width: 60px;
  height: 10px;
  background: #f0f0f0;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}



/* Styles for form elements */
label, input, button {
  display: block;
  width: 90%;
  margin: 0 0 20px; /* Spacing between form elements */
}

input, button {
  padding: 10px;
  border: 2px solid #ccc; /* Border color for form fields */
  border-radius: 5px; /* Rounded corners for inputs and buttons */
  background: #fff;
}

/* Button styles */
button {
  color: white;
  background: #4CAF50; /* Green background for buttons */
  border: none;
}

button[type="submit"] {
  width: auto;
  padding: 10px 20px;
  margin: 20px auto; /* Center the button in the form */
  display: block;
}

/* Add a line after each input field */
input + input {
  border-top: 2px solid #ccc; /* Line to divide between input fields */
  padding-top: 10px;
}

/* Container for notch and title */
.notch-and-title {
  position: relative; /* Needed for absolute positioning of children */
  text-align: center;
}

/* Styling the notch */
.phone-notch {
  position: absolute;
  top: -13px; /* Adjust this value to move the notch above the title */
  left: 50%;
  transform: translateX(-50%);
  width: 60px; /* Width of the notch */
  height: 10px; /* Height of the notch */
  background: #000;
  border-radius: 50%;
  z-index: 10;
}
/* Ensure h1 is displayed inline-block for correct centering */
h1 {
  display: inline-block;
  margin-top: 50px; /* Adjust top margin to give space for notch */
  /* Rest of your h1 styles */
}

/* Ensure the parent container of the notch has a relative position */
.parent-container {
  position: relative; /* Add this class to the div that wraps around the notch */
}

/* This will ensure the shadows are layered and provide a 3D effect */
.phone-screen {
  box-shadow:
    0px 0px 5px rgba(0, 0, 0, 0.1), /* Inner shadow */
    0px 0px 10px rgba(0, 0, 0, 0.2), /* Middle shadow */
    0px 0px 15px rgba(0, 0, 0, 0.3), /* Outer shadow */
    0 2px 2px rgba(0, 0, 0, 0.12),
    0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 1px 5px 0 rgba(0, 0, 0, 0.14);
  /* Adjust the spread, blur radius, and color of these shadows to match your design */
}

/* To properly center and size the phone screen container on all devices */
.phone-screen-container {
  max-width: 90%;
  margin: auto;
  position: relative; /* For absolute positioning of children */
  padding-top: 5%; /* To prevent the notch from cutting into the content */
  background: white; /* Background of the screen */
  border-radius: 20px; /* Rounded corners of the screen */
}

/* this is to update all SELECT type form , like the YES/NO, province, country selectors*/
/* Styles for the dropdown */
select#oneTimeChargesWaived {
  width: 100%; /* Make the select box full width */
  padding: 10px; /* Add some padding inside the select box */
  border-radius: 20px; /* Round the corners */
  border: 1px solid #ccc; /* Add a border similar to the input fields */
  -webkit-appearance: none; /* Remove default styling */
  -moz-appearance: none; /* Remove default styling */
  appearance: none; /* Remove default styling */
  background-color: #fff; /* Background color similar to other input fields */
  text-align-last: center; /* For modern browsers */
  text-align: center; /* For older browsers; may not work in all cases */
  -moz-text-align-last: center; /* For Firefox */
}

select#leaseorfinanceid {
  width: 100%; /* Make the select box full width */
  padding: 10px; /* Add some padding inside the select box */
  border-radius: 20px; /* Round the corners */
  border: 1px solid #ccc; /* Add a border similar to the input fields */
  -webkit-appearance: none; /* Remove default styling */
  -moz-appearance: none; /* Remove default styling */
  appearance: none; /* Remove default styling */
  background-color: #fff; /* Background color similar to other input fields */
  text-align-last: center; /* For modern browsers */
  text-align: center; /* For older browsers; may not work in all cases */
  -moz-text-align-last: center; /* For Firefox */
}


select#oneTimeChargesWaivedcontract, #mandatoryDownPayment {
  width: 100%; /* Make the select box full width */
  padding: 10px; /* Add some padding inside the select box */
  border-radius: 20px; /* Round the corners */
  border: 1px solid #ccc; /* Add a border similar to the input fields */
  -webkit-appearance: none; /* Remove default styling */
  -moz-appearance: none; /* Remove default styling */
  appearance: none; /* Remove default styling */
  background-color: #fff; /* Background color similar to other input fields */
  text-align-last: center; /* For modern browsers */
  text-align: center; /* For older browsers; may not work in all cases */
  -moz-text-align-last: center; /* For Firefox */
}

/* You may also want to style the dropdown arrow to match */
.select-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-top: 5px solid;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

/* Style the wrapper to position the arrow */
.select-wrapper {
  position: relative;
}

/* Position the arrow inside the wrapper */
.select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border-top: 5px solid #000; /* Arrow color */
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

/* Hide the browser's default dropdown arrow */
select#oneTimeChargesWaived::-ms-expand {
  display: none;
}


.ad-container {
  text-align: center;
  /* Additional styling can be applied here as needed */
}


@media only screen and (max-width: 768px) {
    /* Styles for tablets and smaller devices */
    .phone-wrapper {
        width: 80%; /* example percentage */
        margin: 0 auto; /* Center the wrapper */
        /* Additional responsive adjustments */
    }
}

@media only screen and (max-width: 480px) {
    /* Styles for mobile phones */
    .phone-wrapper {
        width: 85%; /* example percentage */
        margin: 0 auto; /* Center the wrapper */
        /* Additional responsive adjustments */
    }
}
