.csm-option {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    /* Normal order: label above input */
}

.csm-option label {
    margin-bottom: 8px;
    /* Space between label and input */
    margin-top: 0;
    font-weight: bold;
    color: #333;
}

.csm-option input.csm-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    font-size: 14px;
    margin-bottom: 0;
    /* No extra margin needed */
}

.input-button-group {
    display: flex;
    gap: 10px;
    margin: 0 0 5px 0;
    padding: 0;
    position: relative;
}

.csm-validation-message {
    order: 3;
}

.csm-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.validation-input {
    flex: 1;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 0;
    position: relative;
}

.verify-button {
    height: 40px;
    min-width: 120px;
    padding: 0 20px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.csm-validation-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.csm-validation-input:invalid {
    border-color: #dc3232;
}

.csm-validation-message {
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
    min-height: 0;
}

/* Hide empty validation messages */
.csm-validation-message:empty {
    display: none;
}

.csm-code-container {
    display: flex;
    gap: 10px;
}

.csm-code-input {
    max-width: 200px;
}

.csm-resend-code {
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.csm-resend-code:hover {
    background: #006ba1;
}

.csm-submit-btn {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.csm-submit-btn:hover {
    background: #006ba1;
}