.card-form {
    width: 1000px;
    max-width: 92%;
    background: #ffffff;
    border-radius: 32px;
    padding: 45px 65px;
    margin: 50px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.card-form-job {
    width: 1200px;
    max-width: 92%;
    background: #ffffff;
    border-radius: 32px;
    padding: 45px 65px;
    margin: 50px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card-form-step {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 32px;
    padding: 40px 45px;
    margin: 50px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

h5.title {
    color: var(--Black, #2a2b2a);
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.8px;
    opacity: 0.8;
    padding-bottom: 15px;
}

h5.job-title {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0.78px;
    color: rgba(42, 43, 42, 0.8);
    margin-bottom: 50px !important;
}

.form-control + small.text-danger {
    margin-top: 6px;
}

label.custom-title {
    color: var(--Black, #2a2b2a);
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.8px;
    opacity: 0.8;
    padding-top: 10px;
}

.form-control,
.form-select {
    border-radius: 30px !important;
    padding: 19px 18px;
}

.input-bubble,
.select-bubble {
    width: 100%;
    height: 50px;
    border-radius: 35px;
    border: 1px solid #dcdcdc;
    padding-left: 20px;
    font-size: 15px;
    outline: none;
    margin-bottom: 15px;
}

.bubble-group {
    width: 100%;
    height: 65px;
    display: flex;
    border: 1px solid #dcdcdc;
    border-radius: 35px;
    overflow: hidden;
    margin-bottom: 0px;
}

.bubble-prefix {
    background: #e43c3c;
    color: white;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.bubble-input {
    flex: 1;
    border: none;
    padding-left: 15px;
    outline: none;
}

.checkbox-row {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.recaptcha-box {
    background: #fafafa;
    border: 1px solid #e3e3e3;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .card-form {
        width: 100%;
        max-width: 92%;
        padding: 30px 25px;
        margin: 20px auto;
    }
    .card-form-job {
        width: 100%;
        max-width: 92%;
        padding: 30px 25px;
        margin: 20px auto;
    }

    h3 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    .input-bubble,
    .select-bubble,
    .bubble-group {
        height: 62px;
        font-size: 14px;
    }

    .bubble-prefix {
        padding: 0 20px;
        font-size: 13px;
    }

    .bubble-input {
        font-size: 14px;
        padding-left: 12px;
    }

    .checkbox-row {
        font-size: 13px;
    }

    .button-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .btn-outline,
    .btn-red {
        width: 100%;
        padding: 12px 0;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .card-form {
        padding: 25px 20px;
        border-radius: 28px;
    }

    .card-form-job {
        padding: 25px 20px;
        border-radius: 28px;
    }

    h3 {
        font-size: 20px !important;
    }

    .recaptcha-box img {
        height: 30px;
    }
}

.upload-btn {
    background: #e2131b;
    color: #fff;
    padding: 0 22px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.upload-btn input {
    display: none;
}

.upload-placeholder {
    font-size: 14px;
    color: #b6b6b6;
    padding-left: 18px;
}

.upload-note {
    font-size: 14px;
    color: #707070;
    margin-bottom: 10px;
    margin-top: 2px;
    margin-left: 30px;
}

.button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 45px;
}

.btn-outline,
.btn-red {
    width: auto;
    min-width: 400px;
    text-align: center;
}

.btn-outline {
    background: none;
    color: rgba(42, 43, 42, 0.8);
    border: 1px solid rgba(42, 43, 42, 0.5);
    border-radius: 35px;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    text-decoration: none;
}

.btn-red {
    background: #e2131b;
    color: #fff;
    border: none;
    border-radius: 35px;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.btn-red:hover {
    background: #c81017;
}

.section-header .title {
    font-weight: 600;
    margin-bottom: 2px;
}

.section-header .subtitle {
    display: block;
    font-size: 16px;
    color: #555;
    margin-top: 1px;
}

@media (max-width: 768px) {
    .button-row {
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline,
    .btn-red {
        width: 100%;
        min-width: unset;
        padding: 14px 0;
    }
}

.upload-bubble input {
    display: none;
}

.upload-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.upload-bubble {
    width: 100%;
    height: 70px;
    border-radius: 50px;
    border: 1px solid #dcdcdc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.uploaded-filename {
    display: block;
    font-size: 13px;
}

.line {
    flex: 1;
    height: 2px;
    background: #e4e4e4;
    margin: 0 10px;
    opacity: 0.8;
}

.date-field {
    cursor: pointer !important;
}

.date-field::placeholder {
    user-select: none;
}

.date-field:focus {
    cursor: pointer !important;
}

.packages-row {
    display: flex;
    gap: 25px;
    justify-content: space-between;
    margin-top: 25px;
}

.package-card {
    flex: 1;
    max-width: 260px;
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: 0.2s ease-in-out;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card h5 {
    margin: 0;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
    background: #e6e6e6;
    color: #333;
}

.package-card[data-package="pako2"] h5 {
    background: #d82424;
    color: #fff;
}

.package-card[data-package="bazike"] h5 {
    background: #000;
    color: #fff;
}

.package-card p {
    padding: 18px 20px;
    font-size: 15px;
    color: #333;
}

.package-text {
    min-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.45;
}

.package-card a {
    text-decoration: underline;
    color: #333;
}

.package-card .price {
    font-size: 22px;
    font-weight: 600;
    color: #d82424;
    padding-bottom: 20px;
}

.text-custom {
    color: #d82424 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    padding: 0 12px;
    display: block;
    text-align: center;
}

#fatca-downloads {
    display: none;
}

#fatca-downloads.show {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.fatca-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 10px 22px;
    min-width: 220px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 999px;

    text-decoration: none;
    font-size: 15px;
    color: #444;
    font-weight: 500;
}

.fatca-icon {
    width: 38px;
    height: 38px;
    background: #e2131b;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
   
}

.fatca-icon i {
    color: #fff;
    font-size: 16px;
}

@media (max-width: 576px) {
    #fatca-downloads.show {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .fatca-btn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 20px;
    }

    .fatca-label {
        font-size: 16px;
    }

    .fatca-icon {
        width: 40px;
        height: 40px;
    }

    .fatca-icon img {
        width: 20px;
        height: 20px;
    }
}

.stepper::before,
.stepper::after {
    display: none;
}

.step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 19px;
    left: calc(-50% + 32px);
    width: calc(100% - 65px);
    height: 1px;
    background: #e4e4e4;
    z-index: 1;
}

.step.completed:not(:first-child)::before {
    background: #e30613;
}

.circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dcdcdc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    z-index: 2;
}

.circle.active {
    background: #e30613;
}

.step span {
    margin-top: 10px;
    max-width: 250px;
    text-align: center;
    font-size: 13px;
    line-height: 1.3;

    white-space: normal;
}

.stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 900px;
    margin: 40px auto 60px;
}

.mobile-step-indicator {
    display: none;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #e30613;
    margin-bottom: 25px;
}

.progress-wrapper {
    display: none;
}

#employment-extra {
    display: none;
}

.no-gutters {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.currency-row > div {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
}

.recaptcha {
    padding-top: 15px;
}

.upload-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-box {
    display: flex;
    width: 100%;
    height: 65px;
    border: 1px solid #dcdcdc;
    border-radius: 35px;
    overflow: hidden;
    background: #fff;
    align-items: center;
}

.upload-wrapper .error-msg {
    font-size: 13px;
    color: #e2131b;
    margin-left: 10px;
}


@media (min-width: 992px) {
  #stepperNav .step { cursor: pointer; }
  #stepperNav .step .circle,
  #stepperNav .step span { cursor: pointer; }

  #stepperNav .step.disabled-step {
    cursor: not-allowed;
    pointer-events: none; 
  }
  #stepperNav .step.disabled-step .circle,
  #stepperNav .step.disabled-step span {
    cursor: not-allowed;
  }
}



@media (max-width: 768px) {
    .main-wrapper {
        padding: 60px 0px !important;
    }

    .card-form-step {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .form-control,
    .form-select,
    .input-bubble,
    .select-bubble {
        width: 100% !important;
        max-width: 100% !important;
        height: 60px !important;
        padding: 16px 20px !important;
        font-size: 17px !important;
        border-radius: 22px !important;
    }

    .stepper {
        display: none !important;
    }

    .progress-wrapper {
        display: block !important;
    }

    .button-row {
        flex-direction: column !important;
        gap: 15px;
        margin-top: 25px;
    }

    .btn-red,
    .btn-outline {
        width: 100% !important;
        min-width: unset !important;
        padding: 15px !important;
        font-size: 17px !important;
        border-radius: 30px !important;
    }
}

.pep-btn {
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    padding: 10px 16px;
}

.pep-btn:hover {
    background: #f8f9fa;
}

.pep-icon {
    width: 40px;
    height: 36px;
    background: #e53935;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.agreement-title {
    color: var(--Black, #2a2b2a);
    font-family: "Questrial";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.8px;
    opacity: 0.7;
    padding-bottom: 10px;
    padding-top: 16px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 16px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-sizing: border-box;
}

.modal-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #2a2b2a;
}

.modal-btn {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: #e2131b;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-btn:hover {
    background: #c81017;
}

.circle.completed {
    background: #e30613;
    font-size: 18px;
}

.circle.completed::before {
    content: "✓";
    font-size: 18px;
    font-weight: 700;
}
.step.completed:not(:first-child)::before {
    background: #e30613;
}

@media (max-width: 768px) {
    .upload-wrapper {
        width: 100% !important;
        height: auto !important;
        border-radius: 35px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        overflow: visible !important;
        padding: 0 !important;
        gap: 6px;
    }

    .upload-box {
        width: 100% !important;
        height: 60px !important;
    }

    .upload-btn {
        height: 100% !important;
        padding: 0 18px !important;
        font-size: 15px !important;
    }

    .upload-placeholder {
        font-size: 14px !important;
        padding-left: 10px !important;
    }

    .upload-note {
        margin-left: 0 !important;
        font-size: 13px !important;
        opacity: 0.8;
    }

    .upload-wrapper small.text-danger {
        font-size: 13px;
        margin-left: 0 !important;
    }
}
