   /* Reset i globalne style */
   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.hidden{
    display: none !important
}
body.main {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6 !important;
    overflow-x: hidden;
    padding-right: 0 !important; /* Usunięcie nadpisywania paddingu */
    margin: unset !important; /* Usunięcie nadpisywania marginesu */
    font-size: unset !important;
}

/* Header */
header.bg-light {
    background: #6132F1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer{
    background-color: #6132F1;
    color: #fff;
    padding: 1rem 0;
    text-align: center
}
header img {
    max-height: 40px;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

/* Main container */
main.container {
    max-width: 1340px;
    margin: 2rem auto;
    padding: 0 15px;
}
.shortInput input{
    max-width: 200px;
    margin-bottom: 16px;
}
/* Alerts */
.alert {
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
.termsContainer a{
    font-weight: bold;
    text-decoration: none
}
.termsContainer a:hover{
    text-decoration: underline
}
.is-invalid .selectPlan{
    border-color: #dc3545;
    background-color: #fff5f5;
    color: #000
}
/* Headings */
body.main h2, body.main h3 {
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

body.main h2 {
    font-size: 20px !important;
}

body.main h3 {
    font-size: 1.25rem !important;
}

/* Form elements */
.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input {
    cursor: pointer;
    margin-right: 0.5rem;
}

body.main .form-check-label {
    font-size: 1rem !important;
    color: #444 !important;
}

body.main .form-label {
    font-weight: 500 !important;
    color: #1a3c6d !important;
    margin-bottom: 0.25rem !important;
}

body.main .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    background-color: #fff;
    margin-bottom: 1.5rem;
}

/* Pricing plans */
.pricing-three-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-three-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.pricing-three-head h4 {
    font-size: 1.25rem;
    color: #1a3c6d;
    margin-bottom: 0.5rem;
}

.pricing-three-head .devices-support {
    font-size: 1rem;
    color: #007bff;
    font-weight: 500;
}

.pricing-three-list ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.pricing-three-list ul li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.pricing-three-list ul li{
    text-align: center;
}
.pricing-three-list ul li i {
    color: #28a745;
    margin-right: 2px;
}

.pricing-three-price {
    font-size: 1.5rem;
    color: #1a3c6d;
    font-weight: 700;
    margin: 1rem 0;
}

.pricing-three-price span {
    font-size: 1rem;
    color: #666;
}

.planSelectedInfo {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #28a745;
    font-weight: 500;
}

.planSelectedInfo .planPrice {
    font-size: 1.1rem;
}

.planSelectedInfo .planTime {
    font-size: 0.9rem;
    font-weight: normal;
}

/* Address rows */
.address-row {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.address-row .removeThisAddress {
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;;
    width: auto;
    margin-left: 12px
}

/* Modals */
.modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    color: #1a3c6d;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
}

/* Toast */
.toast-container {
    z-index: 1050;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Total price */
#mainPlanTotalPrice,
#serviceAddressesTotalPrice {
    font-size: 1.25rem;
    font-weight: 600;
    color: #007bff;
    margin-top: 1rem;
}
.form-check-input.bigger {
    width: 2em; /* Podwójna wielkość */
    height: 2em; /* Podwójna wielkość */
    margin-right: 0.75rem; /* Zwiększony odstęp od etykiety */
    cursor: pointer;
    vertical-align: middle;
    transform: scale(1); /* Opcjonalne: w razie potrzeby można użyć scale(2) zamiast width/height */
    transition: transform 0.2s ease;
}

.form-check-input.bigger:checked {
    background-color: #007bff; /* Kolor tła po zaznaczeniu */
    border-color: #007bff;
}

.form-check-input.bigger:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Fokus */
}

/* Styl dla etykiet, aby dopasować do większych inputów */
.form-check-label.bigger {
    font-size: 1rem;
    color: #444;
    vertical-align: middle;
    line-height: 40px; /* Dopasowanie linii do większych inputów */
}
.userType{
    display: flex;
}
#login{
    margin-left: 16px
}
.form-check-label{
    cursor: pointer
}
.form-check-label.bigger{
    font-weight: bold;
    font-size: 18px
}
#formMessage{
    display: none
}
.userSelect{
    display: flex
}
.pricing-three-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 256px;
    text-align: center;
    margin: 0 auto 0;
}

.pricing-three-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.pricing-three-head {
    margin-bottom: 15px;
}

.title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.devices-support {
    display: block;
    font-size: 0.9rem;
    color: #6c757d
}

.pricing-three-list {
    margin-bottom: 20px;
}

.pricing-three-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-three-list li {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-three-list li i {
    color: #28a745;
    margin-right: 8px;
}

.planText {
    font-weight: 500;
}

.pricing-three-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.planPrice {
    font-size: 2rem;
    color: #007bff;
}

.pricing-three-price span:last-child {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
}

.btn.s-btn.transparent-btn {
    background: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn.s-btn.transparent-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.btn.s-btn.transparent-btn:active {
    transform: scale(0.95);
}
.planPrice{
    font-size:20px
}
.currency{
    font-size:12px
}
#plansModal .col-md-4, #plansModal .col-lg-3{
    max-width: 280px
}
#pricingPlans{
    justify-content: center;
}
.planTimes{
    text-align: center;
    
}
.selectPlan{
    margin-top: 30px;
    padding: 0.45rem 1rem
}
#privateFields, #companyFields{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end
}
.w100{
    width: 100%
}

.plan-select-container:not(.privatePlanContainer):not(.companyPlanContainer) .selectPlan{
    margin-bottom: 16px;
}
.plan-select-container{
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%;
}
.pFields,.cFields,.planCol{
    width: 100%;
    max-width: 640px;
}
.planCol{
    max-width: unset;
}
.removeThisAddress{
    width: auto !important
}
.pFields,.cFields,.planCol,.removeThisAddress {
    width: 100%;
}
.planSelected{
    height: auto;
    transform: none !important;
    margin-left: 0;
    width: 100%;
}
.continue{
    text-align: center;
}
.companyFields .companyFields .col-md-6:first-of-type{
    align-items: flex-end
}
.is-invalid .invalid-feedback{
    display: block !important
}
#formMessage{
    background-color: #DC3545;
    border-color: #f5c6cb;
    color: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: bold
}
#loginError{
    color: #DC3545;
    margin-top: 8px
}
.planSelected .hiddenForSelected{
    display: none !important
}
.modal-body .ipFeature{
    display: flex !important
}
select{
    padding: 0.75rem !important
}
.modal-body .contractConatainer{
    padding-top: 32px;
}
.ipSelect{
    margin-top: 8px
}
#contractPreviewContent .forPrint{
    display: none
}
.error { color: red; font-size: 0.875em; }
        .success { color: green; font-size: 0.875em; }
        .tab-content { padding: 20px; }
        .nav-tabs .nav-link.active { background-color: #f8f9fa; }
        button#signature {
            height: 80px;
            border: 1px solid #000;
            border-radius: 0;
        }
        .adminConfig button#signature{
            height: auto
        }
        #signatureCanvas {
            touch-action: none;
            z-index: 1000;
            position: relative;
            background: white;
            width: 100%;
            height: 200px;
        }
        #saveSignature:disabled {
            opacity: 0.65;
            cursor: not-allowed;
        }
        #saveSignature:not(:disabled) {
            opacity: 1;
            cursor: pointer;
        }
        #signatureModal .modal-body {
            position: relative;
            z-index: 1000;
        }
        #signatureModal {
            z-index: 1055;
        }

    button#signature img{
        max-width: 400px !important;
        max-height: unset !important;
    }

@media (max-width: 768px) {
    main.container {
        padding: 0 10px;
    }

    .pricing-three-item {
        min-width: 100%;
        margin-bottom: 1rem;
    }

    .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .address-row .removeThisAddress {
        position: static;
        margin: 0.5rem 0;
        width: 100%;
    }

    .address-row .col-md-6 {
        padding-right: 15px;
    }
}
@media (max-width: 1330px) {
    .addressRow {
        flex-wrap: wrap;
    }
    .addressRow .col-6 {
        width: 100%;
    }
    .addressRow .short{
        width: 50%;
    }
}
@media (max-width: 891px) {
    .pFields, .cFields,.plan-select-container {
        width: 100%;
    }
    .addressRow .short{
        width: 50%;
    }
    .removeThisAddress{
        width: auto;
        margin-left: 12px;
    }
}
@media (max-width: 740px) {
    .planTimes .form-label{
        width: 100%
    }
}
@media (max-width: 576px) {
    .documentRow .col-4{
        width: 41.66666667%;
    }
    .documentRow .col-8{
        width: 58.33333333%;
    }
    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .pricing-three-price {
        font-size: 1.25rem;
    }
    .form-check-input.bigger {
        width: 1.5em; /* Nieco mniejszy na małych ekranach */
        height: 1.5em;
    }

    .form-check-label.bigger {
        line-height: 1.5em;
        line-height: 30px
    }
}