*, 
*::before,
*::after { 
    box-sizing: border-box;
}

*{
    margin: 0;
    padding: 0;
}

form {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    color: #000;
     /* Updated width */
    margin: 0 auto; /* Center the form on the screen */
    padding: 20px; /* Add padding for better spacing */
}

h3{
    margin: 40px 0 10px 0;
}

.fa-solid.fa-user-pen{
    color:#fff;
}

i{
    margin-right: 8px;
}

.fa-solid.fa-user-minus{
    margin: 0;
}

.delivery-button{
    background-color: #7F73FF;
    border-radius: 50px;
    color: white;;
    width: 300px;
    text-align: left;
    margin-bottom: 10px;

}
.delivery-number{
    width:20px;
    text-align: right;
    margin-bottom:10px;
}
.remove-delivery{
    border-radius: 100px;
    margin-bottom: 10px;
    background-color: #7F73FF;
}

.delivery-button:hover, .remove-delivery:hover, #add-delivery:hover{
    background-color: #4d4697;
    color: white;
}
.delivery-button:focus,
.remove-delivery:focus{
    background-color: #7F73FF;
}



.delivery-buttons-container{
        display: flex;
        align-items: center; 
        gap: 8px; /* spacing between items */
}



.delivery-details{
    padding: 10px 40px 30px 30px;
}

.delivery-details p{
    margin:20px 0 0 0;
}

.delivery-item{
    margin-bottom: 10px;
}

.tooltip {
    position: relative;     /* So we can absolutely position .tooltip-text */
    display: inline-block;  /* Keeps the icon inline */
    cursor: pointer;        /* Indicates hoverable/clickable */
  }
  
  /* Tooltip text hidden by default */
  .tooltip-text {
    visibility: hidden;              /* Don’t show it initially */
    background-color: #000;          /* Black background */
    color: #fff;                     /* White text */
    text-align: left;                /* Or center, if you prefer */
    padding: 8px;
    border-radius: 4px;
    width: 300px;                    /* Set a fixed width (optional) */
    
    /* Position it above or below the icon: */
    position: absolute;
    bottom: 125%;                   /* 125% above the icon */
    left: 50%;
    transform: translateX(-50%);     /* Center horizontally */
    
    /* Make sure it appears above other elements */
    z-index: 999;
    
    /* Add a subtle transition for fade-in effect */
    opacity: 0;
    transition: opacity 0.3s;
  }
  
/* Show the tooltip on hover */
.tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}

/* (Optional) add an arrow pointing down from the tooltip */
.tooltip-text::after {
content: "";
position: absolute;
top: 100%;         /* If tooltip is above the icon, arrow is placed below text */
left: 50%;
transform: translateX(-50%);
border-width: 6px;
border-style: solid;
/* The top side of the arrow is black, the rest are transparent */
border-color: #000 transparent transparent transparent;
}

input[type="checkbox"]{
    accent-color: #4d4697;
    color: white;
    vertical-align: middle;
    margin-bottom: 3px;
}
.inline{
    display: flex;
    margin-top: 8px;
    align-items: center;
}
.inline label{
    width: 40%;
    justify-self: right;
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  width:5%;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield; /* Hides the default spinner in Firefox */
  appearance: textfield;      /* For modern browsers that support it */
  width:5%;
}

.inline input{
    padding: 0;
    text-align: center;
}


#add-delivery, #add-delivery:focus{
    background-color: #7F73FF;
    color: white;
    width: 200px;
    text-align: left;
}

button[type="submit"], button[type="submit"]:focus{
    background-color: #7F73FF;
    color: white;
}

button[type="submit"]:hover{
    background-color: #4d4697;
    color: white;
}

.courier-success-message {
    text-align: center;
    background: #7F73FF1A;
    border-radius: 5px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
}

.courier-success-message h2 {
    margin-bottom: 1.5rem;
}

.courier-success-message p {
    margin-bottom: 1.5rem;
}

.courier-success-message .button {
    display: inline-block;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.fa-regular.fa-arrow-right{
    padding-left:5px;
}
