.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f2f4f8;
    padding: 40px;
    box-sizing: border-box;
    ;
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .form-wrapper {
        padding: 10px;
        align-items: flex-start;
    }
}

.form-container {
    margin-top: 30px;
    background: #ffffff;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    margin-top: 150px;
    margin-bottom: 50px
}

.form-container h2 {
    text-align: center;
    margin-bottom: 22px;
    color: #222;
    font-weight: 600;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #444;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: 1px solid #022b57;
    font-size: 14px;
    background-color: #fff;
    outline: none;
}

select {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: 1px solid #022b57 !important;
    font-size: 14px;
    background-color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23007bff' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

input:focus,
select:focus {
    border-color: #022b57 !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.error {
    font-size: 12px;
    color: #e53935;
    margin-top: 4px;
}

.button-secondary {
    width: 100%;
    height: 50px;
    margin-top: 12px;
    background: linear-gradient(135deg, #022b57, #022b57);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 20px;
    border-width: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #0056b3, #009ec3);
    transform: translateY(-2px);
}

button:disabled {
    background: #b5c9e6;
    cursor: not-allowed;
}

.question {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid #022b57;
    background: #ffffff;
    color: #022b57;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.option-btn:hover {
    background: #eaf4ff;
}

.option-btn.active {
    background: #abccf0;
    color: #ffffff;
}

.option-btn:focus {
    outline: none;
}

.button-group-2columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .button-group-2columns {
        grid-template-columns: 1fr;
    }
}

/* Dark backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 10px;
    /* for small screens */
}

/* Modal box */
.modal-otp {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Heading and paragraph */
.modal h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

.modal p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1rem;
}

.otp-input {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 6px;
    border: 2px solid blue;
    background-color: #fff;
    outline: none;
    letter-spacing: 8px;
    box-sizing: border-box;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.otp-input:focus {
    border-color: #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.modal input[type="text"]:focus {
    border-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.modal .error {
    display: block;
    color: red;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-verify {
    background-color: #4caf50;
    color: white;
}

.btn-verify:hover {
    background-color: #45a049;
}

.btn-cancel {
    background-color: #f44336;
    color: white;
}

.btn-cancel:hover {
    background-color: #e53935;
}

@media (max-width: 350px) {
    .modal {
        padding: 20px 15px;
    }

    .modal input[type="text"] {
        letter-spacing: 5px;
    }

    .modal-actions button {
        font-size: 0.9rem;
        padding: 10px;
    }
}