body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #009cde;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

main {
    margin-bottom: 5em;
}

@media (max-width: 767px) {
    body {
        padding: 0.5rem !important;
    }
}

.card {
    background-color: #009cde;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .card {
        max-width: 50%;
        padding: 2rem;
    }
}

.header {
    text-align: center;
    justify-items: center;
    margin-bottom: 2rem;
}

.logo {
    display: block;
    min-width: 50%;
    margin-bottom: 1.5rem;
}

.signup-title {
    display: inline-block;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    background-color: #0072a8;
}

.signup-title h1 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.signup-form {
    margin-bottom: 2rem;
}

.form-field {
    display: flex;
    margin-bottom: 1rem;
}

.form-field label {
    background-color: #e8008b;
    color: #fff;
    padding: 0.8rem 1rem;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    display: flex;
    align-items: center;
    width: 45%;
    font-size: 0.9rem;
    line-height: 1.2;
}

.form-field i {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    width: 25px;
    text-align: center;
}

.form-field input {
    border: none;
    padding: 1rem;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    width: 55%;
    font-size: 1rem;
    background-color: #fff;
    color: #333;
}

.packages h2 {
    color: #fff;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.package-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.toggle-button {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.toggle-button:first-child {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border-right: 1px solid #fff;
}

.toggle-button:last-child {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    border-left: 1px solid #fff;
}

.toggle-button.active {
    background-color: #fff;
    color: #009cde;
}

.package-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.package-option {
    background-color: #e8008b;
    color: #fff;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    border: 2px solid #fff;
}

.package-option p {
    margin: 0.3rem 0;
}

.speed {
    font-size: 2rem;
    font-weight: 700;
}

.unit {
    font-size: 1rem;
    font-weight: 400;
}

.type {
    font-size: 0.9rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
}

.period {
    font-size: 1rem;
    font-weight: 400;
}

.package-option {
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: block;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.package-option:hover {
    border-color: #0078d7;
    box-shadow: 0 0 0 2px #0078d733;
}

.package-option:has(input[type="radio"]:checked) {
    color: #e8008b;
    background-color: #fff;
    font-weight: bold;
    text-shadow: 0 0 2px #0078d722;
}

@supports(selector(:has(*))) {
    .package-option:has(input[type="radio"]:checked) {
        border-color: #0078d7;
        box-shadow: 0 0 0 2px #0078d733;
    }
}

.help-text {
    text-align: center;
    color: #fff;
    font-size: 0.8rem;
    margin: 0 2rem;
}

.form-confirm {
    background-color: #e8008b;
    color: #fff;
    padding: 1em;
    border-radius: 50px;
    display: flex;
    align-items: center;
    margin: 1em 0;
    font-size: 1rem;
    justify-content: space-evenly;
}

#signup-button {
    font-weight: 700;
    background-color: #fff;
    color: #e8008b;
    padding: 1em;
    border-radius: 50px;
    font-size: 1rem;
    width: 100%;
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}