#orderModal,
#confirmation-step,
#payment-method-modal,
.custom-modal {
    position: fixed;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(13, 110, 253, 0.15);
    backdrop-filter: blur(6px);

    z-index: 1000;
}

#orderModal.active,
#confirmation-step.active,
#payment-method-modal.active,
.custom-modal.active {
    display: flex;
}

.order-modal-content,
#confirmation-step .modal-content,
#payment-method-modal .modal-content,
.modal-box {
    width: 420px;
    max-width: 95%;

    background: #fff;
    border-radius: 16px;

    padding: 24px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.15);

    position: relative;

    animation: modalPop 0.2s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.96);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.order-header button {
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    color: #333;
}

#orderForm input {
    width: 100%;
    padding: 10px;

    margin-bottom: 10px;

    border: 1px solid #ddd;
    border-radius: 8px;

    font-size: 14px;
}

.invoice-check {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 15px;
    color: #444;

    cursor: pointer;
    user-select: none;

    position: relative;
    padding-bottom: 15px;
}

.invoice-check input {
    position: absolute;
    opacity: 0;
}

.checkmark {
    width: 16px;
    height: 16px;

    border: 2px solid #0d6efd;
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

.checkmark::after {
    content: "";
    width: 4px;
    height: 8px;

    border: solid white;
    border-width: 0 2px 2px 0;

    transform: scale(0) rotate(45deg);
    transition: 0.15s ease;
}

.invoice-check input:checked + .checkmark {
    background: #0d6efd;
}

.invoice-check input:checked + .checkmark::after {
    transform: scale(1) rotate(45deg);
}

.terms-row {
    font-size: 10px;
    color: #444;
    line-height: 1.4;

    display: block;
    margin-bottom: 3%;
}

.terms-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.terms-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.terms-text {
    display: inline;
    font-size: 12px;
}

.terms-links {
    display: inline;
    font-size: 12px;
}

.terms-links a {
    color: #0d6efd;
    text-decoration: underline;
}

.terms-links {
    white-space: normal;
    overflow-wrap: anywhere;
}

.terms-check input:checked + .checkmark {
    background: #0d6efd;
}

.terms-check input:checked + .checkmark::after {
    transform: scale(1) rotate(45deg);
}

.submit-order-btn,
#send-code-btn,
#verify-code-btn,
#cod-btn,
#paypal-start-btn {
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 8px;

    background: #0d6efd;
    color: #fff;

    font-weight: 600;
    font-size: 14px;

    cursor: pointer;

    transition: 0.2s ease;
}

.submit-order-btn:hover,
#send-code-btn:hover,
#verify-code-btn:hover,
#cod-btn:hover,
#paypal-start-btn:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

#code-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#code-boxes input {
    width: 45px;
    height: 50px;

    border: 2px solid #e0e0e0;
    border-radius: 8px;

    text-align: center;

    font-size: 20px;
    font-weight: bold;
}

#code-boxes input:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.2);
}

#error-msg {
    color: #dc3545;
    text-align: center;
    margin-top: 5px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;

    border-radius: 50%;
    border: none;

    background: #f1f5ff;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.25s;
}

.modal-close:hover {
    background: #0d6efd;
    color: #fff;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 16px 18px;

    border-radius: 14px;

    background: #f8faff;
    border: 1px solid #e3ecff;

    text-decoration: none;
    color: #212529;

    transition: 0.25s ease;
}

.contact-card:hover {
    background: #eef4ff;
    border-color: #0d6efd;
    transform: translateY(-2px);
}

.contact-text .title {
    font-weight: 600;
}

.contact-text .subtitle {
    font-size: 14px;
    color: #6c757d;
}

.form-message {
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 8px;

    background: #ffffff;
    border-left: 4px solid #1e88e5;
    color: #1e88e5;

    font-size: 14px;
    line-height: 1.4;

    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
#confirmation-step .modal-content,
#payment-method-modal .modal-content {
    margin: auto !important;
    transform: translateY(160px);
}
input.req:required {
    border-left: 3px solid red;
}

label.req-label::after {
    content: " *";
    color: red;
    font-weight: bold;
}