/* ========================================================================= */
/* ============= SECTION 1: SECURE MANAGEMENT SYSTEM - MAIN CSS ============ */
/* ========================================================================= */

.sms-form-wrapper {
    max-width: 600px;
    margin: 2em auto;
    padding: 25px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.sms-form-field {
    margin-bottom: 20px;
}

.sms-form-wrapper label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.sms-form-wrapper input[type="text"],
.sms-form-wrapper input[type="email"],
.sms-form-wrapper textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.sms-form-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.sms-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #2c3e50;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sms-button:hover {
    background-color: #34495e;
}

.sms-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Updated styles for the message area */
.sms-message-area {
    padding: 15px 40px 15px 15px; /* Increased right padding for the icon */
    margin-bottom: 20px;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    font-size: 1.1em;
    display: none;
    cursor: pointer;
    position: relative; /* Required for positioning the close icon */
}

/* New rule to create the 'X' close icon */
.sms-message-area::after {
    content: '\00d7'; /* Unicode 'times' character (X) */
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    opacity: 0.4;
}

.sms-message-area:not(:empty) {
    display: block;
}

.sms-message-area.is-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.sms-message-area.is-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.sms-message-area.is-loading {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #495057;
    pointer-events: none;
    cursor: wait;
}