/**
 * SOAP BAA Consent Log Frontend Styles
 * Version: 1.0.0
 *
 * Provides basic styling for the consent form to ensure usability.
 */

/* Main Form Wrapper */
#soap-baa-consent-form-wrapper {
    max-width: 750px;
    margin: 25px auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* BAA Agreement Text Container */
.soap-baa-agreement-text {
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    padding: 15px 25px;
    margin-bottom: 20px;
    max-height: 450px;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 14px;
}

/* Version Display */
.soap-baa-version-display {
    text-align: right;
    font-size: 0.9em;
    color: #555;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Form Fields Layout */
.soap-form-field {
    margin-bottom: 18px;
}

.soap-form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 14px;
}

.soap-form-field input[type="text"],
.soap-form-field input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-size: 15px;
}

.soap-form-field .required {
    color: #d9534f; /* A clear red for asterisks */
    font-weight: bold;
    margin-left: 3px;
}

/* Checkbox specific styling */
.soap-form-field-checkbox {
    display: flex;
    align-items: flex-start; /* Aligns checkbox with the start of the text */
    padding: 10px;
    background: #f7f7f7;
    border-radius: 4px;
}

.soap-form-field-checkbox input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 12px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.soap-form-field-checkbox label {
    font-weight: normal;
    display: inline;
    cursor: pointer;
}

/* Submit Button */
#soap-baa-consent-form button[type="submit"] {
    display: inline-block;
    background-color: #0073aa; /* WordPress Core Blue */
    color: #fff;
    border: none;
    padding: 12px 25px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
    width: 100%;
}

#soap-baa-consent-form button[type="submit"]:hover {
    background-color: #005a87;
}

/* Feedback Notification Boxes */
.soap-baa-notice {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.soap-baa-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.soap-baa-error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 25px 0;
}