.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.modal.active {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    pointer-events: auto;
}

.modal .modal-content {
    position: relative;
    background: white;
    overflow-y: auto;
    box-sizing: border-box;
    max-width: 1300px;
    width: 90%;
    padding: 30px;
    padding-right: 60px;
    padding-bottom: 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal .modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.modal .modal-close:hover {
    color: #1f7a4f;
}

.modal .modal-body {
    display: flex;
    gap: 20px;
}

.modal .modal-body .modal-left,
.modal .modal-body .modal-right {
    flex: 1;
}

.modal .modal-body .modal-left {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.modal .modal-body img {
    width: 100%;
    height: auto;
    max-width: 350px;
}

.modal .modal-body form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px 0;
}

.modal .modal-body form .form-group-modal {
    display: flex;
    flex-direction: column;
}

.modal .modal-body form .form-group-modal label {
    margin-bottom: 10px;
    font-weight: bold;
}

.modal .modal-body form .form-group-modal input {
    outline: none;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.modal .modal-body form .checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.modal .modal-body form .checkbox-group input[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #1f7a4f;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.modal .modal-body form .checkbox-group input[type=checkbox]:checked {
    background-color: #1f7a4f;
    border-color: #1f7a4f;
}

.modal .modal-body form .checkbox-group input[type=checkbox]:checked::after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    position: absolute;
    top: 2px;
    left: 5px;
    transform: rotate(45deg);
}

.modal .modal-body form .checkbox-group label {
    font-size: 14px;
    margin-bottom: 0;
    display: inline-flex;
    font-weight: 400;
    line-height: 1.3;
    align-items: center;
}

.modal .modal-body form .submit-button {
    margin-top: 10px;
    padding: 12px;
    background-color: #1f7a4f;
    color: white;
    border: none;
    min-height: 56px;
    font-size: 18px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal .modal-body form .submit-button::after {
    content: "→";
    margin-left: 10px;
    font-size: 18px;
}

.modal .modal-body form .submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.modal .modal-body form .submit-button:disabled:hover {
    background-color: #ccc;
    color: #f8f9fa;
    border: 1px solid #ccc;
}

.modal .modal-body form .submit-button:hover {
    background-color: white;
    color: #1f7a4f;
    border: 2px solid #1f7a4f;
}

#modal-2 {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    opacity: 0;
    z-index: 10000;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

#modal-2.active {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    pointer-events: auto;
    z-index: 1000;
}

#modal-2 .modal-content {
    position: relative;
    background: #f8f9fa;
    max-width: 900px;
    width: 90%;
    padding: 30px;
    padding-right: 60px;
    padding-bottom: 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#modal-2.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

#modal-2 .modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

#modal-2 .modal-close:hover {
    color: #1f7a4f;
}

#modal-2 .modal-body {
    display: flex;
    gap: 20px;
}

#modal-2 .modal-body .modal-left,
#modal-2 .modal-body .modal-right {
    flex: 1;
}

#modal-2 .modal-body .modal-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 0 30px;
    padding-bottom: 30px;
}

#modal-2 .modal-body .modal-left h2 {
    font-size: 32px;
    color: #212529 !important;
    padding: 0;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 30px;
}

#modal-2 .modal-body .modal-left p.subtitle {
    font-size: 20px;
    color: #555a65;
    margin-bottom: 30px;
    padding: 0;
    line-height: 1.4;
}

#modal-2 .modal-body .modal-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 20px 20px 0 20px;
}

#modal-2 .modal-body .modal-right img {
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
}

#modal-2 .modal-body button {
    padding: 12px 20px;
    background-color: #1f7a4f;
    color: white;
    font-size: 18px;
    max-width: 100%;
    min-height: 56px;
    width: 100%;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#modal-2 .modal-body button:hover {
    background-color: white;
    color: #1f7a4f;
    border: 2px solid #1f7a4f;
}

#modal-3 {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    opacity: 0;
    z-index: 10000;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

#modal-3.active {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    pointer-events: auto;
    z-index: 1000;
}

#modal-3 .modal-content {
    position: relative;
    background: #f8f9fa;
    max-width: 600px;
    width: 100%;
    padding: 30px;
    padding-right: 60px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#modal-3.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

#modal-3 .modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

#modal-3 .modal-close:hover {
    color: #1f7a4f;
}

#modal-3 .modal-body {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

#modal-3 .modal-body h2 {
    font-size: 42px;
    color: #212529 !important;
    padding: 0;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 30px;
}

#modal-3 .modal-body p.subtitle {
    font-size: 20px;
    color: #555a65;
    margin-bottom: 30px;
    padding: 0;
    line-height: 1.4;
}

#modal-3 .modal-body button {
    padding: 12px 20px;
    background-color: #1f7a4f;
    color: white;
    max-width: 100%;
    height: 64px;
    font-size: 18px;
    width: 100%;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#modal-3 .modal-body button:hover {
    background-color: #155135;
}

body.modal-open {
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #1f7a4f;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #155135;
}

@media (max-width: 992px) {
    .modal .modal-content h2 {
        padding: 0;
        font-size: 25px;
    }

    .modal .modal-content p {
        padding: 0;
        font-size: 14px;
    }

    .modal .modal-body {
        flex-direction: column;
    }

    .modal .modal-body .modal-left {
        display: none;
    }

    .modal .modal-body .modal-right {
        width: 100%;
    }

    #modal-2 .modal-content {
        padding-bottom: 30px;
    }

    #modal-2 .modal-body {
        flex-direction: column;
    }

    #modal-2 .modal-body .modal-left {
        width: 100%;
        padding: 0;
    }

    #modal-2 .modal-body .modal-left h2 {
        padding: 0;
        font-size: 25px;
    }

    #modal-2 .modal-body .modal-left p {
        padding: 0;
        font-size: 14px;
    }

    #modal-2 .modal-body .modal-right {
        display: none;
    }

    #modal-3 .modal-content {
        padding-bottom: 30px;
    }

    #modal-3 .modal-body {
        flex-direction: column;
    }

    #modal-3 .modal-body h2 {
        padding: 0;
        font-size: 25px;
    }

    #modal-3 .modal-body p.subtitle {
        padding: 0;
        font-size: 18px;
    }

    #modal-3 .modal-body button {
        width: 100%;
    }
}