
@media all {
    .subscription-container {
        width: 100%;
        margin: 0 auto;
        padding: 20px 20px 40px 20px;
        box-sizing: border-box;
        background: #f9f9f9;
        display: flex;
        justify-content: center;
        gap: 45px;
        flex-wrap: wrap;
    }

    .subscription-title {
        font-size: 2.3rem;
        text-align: center;
        color: #d2797e;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .subscription-title span {
            margin-right: 10px;
        }

    .title-image {
        width: 35px;
        object-fit: contain;
    }

    .card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .card-image {
        width: 35px;
        object-fit: contain;
        margin-left: 5px;
        margin-bottom: 20px;
    }

    .card {
        background: linear-gradient(135deg, #f4f4f4, #eaeaea);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 25px;
        width: 33%;
        width: 500px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .card-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
        cursor: pointer;
    }

    .card h3 {
        font-size: 1.7rem;
        margin-bottom: 20px;
        color: #666666;
    }

    .card ul {
        list-style: none;
        padding-left: 0;
    }

        .card ul li {
            font-size: 1.1rem;
            margin-bottom: 12px;
            position: relative;
        }

    .dot {
        color: #d2797e;
        margin-right: 6px;
        font-weight: bold;
    }

    form {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: left;
        width: 45%;
    }

    .input-field {
        padding: 10px;
        border: 1px solid #d2797e;
        border-radius: 5px;
        font-size: 16px;
        width: -webkit-fill-available;
    }
        .input-field:focus {outline: none;}
    .input-field.add-team{height: 40px; border-right: none; border-left: none; border-top: none; border-bottom: 2px solid #d2797e; border-radius: 0px;}
        .input-field.add-team.add-name {max-width: 220px;}
        .input-field.add-team.add-email {max-width: 340px;}

    .add-team-form{width: 55%;}

    .checkbox-container {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 14px;
    }

        .checkbox-container a {
            color: #d2797e;
            text-decoration: none;
        }

    .button-container {
        display: flex;
        justify-content: end;
        margin-top: 10px;
        gap: 10px;
        margin: 8px;
    }

    .btn-primary {
        background-color: #d2797e;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        width: 135px;
    }
    .btn-primary.add-btn {min-width: 90px; margin-left:auto;}

    .btn-secondary {
        background-color: #bcbcbc;
        color: black;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
    }

    .group-box {
        border: 1px solid #ccc;
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 10px;
        background-color: #fff;
    }

    legend {
        color: #666;
        margin-bottom: 10px;
        padding: 0px 5px;
    }
    legend i{
        font-size: 20px;

    }

    .form-row {
        display: flex;
        gap: 10px;
        margin: 10px 0;

    }

    #country_selector{width: 294px;}
    .country-select .country-list {width: 294px !important;}
    .flag {cursor: pointer;}
    .team-list-container {
        margin-top: 20px;
        width: 80%;
        margin: 0 auto;
    }

    .team-list-label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        color: #666;
    }

    .team-list-bar {
        display: flex;
        gap: 15px;
        background: #fff;
        border-radius: 25px;
        align-items: center;
        margin: 10px;

    }

    .team-list-name, .team-list-email {
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #f9f9f9;
        color: #777;
        
    }
    .team-list-name{
        font-weight: bold;
    }

    .team-list-name, .team-list-email {
        flex-grow: 1;
        background: none;
        border: 0px;

    }
    .team-list-remove {
        cursor: pointer;
        background: #777;
        color: #fff;
        width: 28px;
        height: 28px;
        border-radius: 14px;
        font-size: 25px;
        text-align: center;
        line-height: 28px;
        margin-right: 10px;
    }
    .team-list-remove:hover {
        background: #999;
    }

    /******************************************************/


}
@media (min-width: 1000px) and (max-width: 1200px) {
    form {width: 60%;}
    .add-team-form {width: 60%; margin: auto;    }

}
@media (min-width: 481px) and (max-width: 999px) {
    form { width: 90%; }
    .button-container {justify-content: center;}
    .form-row {display: grid;}
    .add-team-form { width: 80%; display: grid;}
    #country_selector { width: 100%;}
    .input-field.add-team.add-name {max-width: 100%;}
    .input-field.add-team.add-email {max-width: 100%;}
    .team-list-email {border-top: 1px solid #999 ; border-radius: 0;}
    .team-list-bar {display: grid; gap: 0; border-radius: 10px; }
    .btn-primary.add-btn {margin: auto;}
    .team-list-remove {margin: auto; width: 150px; margin-bottom: 10px;}

}

@media screen and (max-width: 480px) {
    form {width: 100%;}
    .button-container {justify-content: center;}
    .form-row {display: grid;}
    .add-team-form { width: 100%;}
    #country_selector {width: 100% !important;}
    .input-field.add-team.add-name {max-width: 100%;}
    .input-field.add-team.add-email {max-width: 100%;}
    .team-list-email {border-top: 1px solid #999 ; border-radius: 0;}
    .btn-primary {width: 110px; padding: 8px 20px;}
    .btn-primary.add-btn {margin: auto;}
    .team-list-bar {display: grid; gap: 0; border-radius: 10px; }
    .team-list-remove {margin: auto; width: 100px; margin-bottom: 10px;}
}
