body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow-y: scroll;
}

.App {
    text-align: center;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    width: 400px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 20px;
    justify-content: space-between;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    gap: 10px;
}

.header {
    text-align: center;
}

.notice {
    background-color: #fff3cd;
    border-left: 5px solid #ffeeba;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #856404;
    border-radius: 5px;
}

.notice.warning {
    background-color: #ea4848;
    border-left: 5px solid #ae0404;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #fff;
    border-radius: 5px;
}

.notice.success {
    background-color: #ace4b9;
    border-left: 5px solid #17b23b;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #282313;
    border-radius: 5px;
}

.notice>p {
    text-align: left;
}

div.buttons.hidden {
    display: none;
}

form {
    display: flex;
    gap: 30px;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 10px;
}

.group.form-group label {
    margin-top: 20px;
}

.form-group label {
    text-align: left;
    font-weight: bold;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group.inline-group div {
    display: flex;
    gap: 10px;
    width: 48%;
    /* Make the fields share the same row */
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
}

.form-group.inline-group {
    display: flex;
    justify-content: space-between;
}

.group.form-group.opt-in {
    display: flex;
    align-self: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
}

#ccv, #expiration {
    width: 30%;
}

#phone-field {
    display: block;
    margin: 0;
    opacity: 0;
    height: 0;
    transition: all 250ms linear .05s;
    width: 100%;
    overflow: hidden;
}

#phone-field.show {
    opacity: 1;
    height: auto;
    width: 100%;
}

.form-group.opt-in {
    display: grid;
    grid-template-areas: "checkbox"
        "telphone";
    width: 100%;
    gap: 10px;
}

.form-group.opt-in .checkbox {
    width: 100%;
}

.submit-button {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: #218838;
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Port selection */
.port-container {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.port {
    width: 100px;
    height: 100px;
    background-color: #f7f7f7;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: none;
}

.port span {
    position: absolute;
    z-index: 2;
    font-size: 1.2em;
}

.ring {
    position: absolute;
    width: 118px;
    height: 118px;
}

.green-ring {
    fill: none;
    stroke: #4CAF50;
    stroke-width: 0;
    stroke-dasharray: 101, 100;
    /* Initial circle is empty */
    stroke-dashoffset: 100;
    /* Offset to hide the stroke */
    transition: stroke-dashoffset 1.5s linear, transform 0.5s;
}

.port.active .green-ring {
    stroke-dashoffset: 0;
    /* The ring will be fully drawn */
    animation: growRing 1s ease-in-out forwards;
}

@keyframes growRing {
    from {
        border: #218838 0px solid;
        stroke-dashoffset: 100;
        opacity: 0;
    }

    to {
        border: #218838 5px solid;
        stroke-dashoffset: 0;
        stroke-width: 1.8;
    }
}

.port:hover {
    transform: scale(1.1);
}

.port:hover span {
    transition: stroke-dashoffset 1.5s linear, transform 0.5s;
    transform: scale(1.2);
    font-size: 1.3em;
    font-weight: bold;
}

.port.active {
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

#selected-port {
    font-size: 16px;
    margin: 20px 0;
    font-weight: bold;
}


@media (max-width: 768px) {
    .container, .container-md, .container-sm {
        border-radius: 0;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 360px) {
    .port-container, .progress-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

}