/* Container */
.cohsar-form {
    max-width: 550px;
    margin: 20px auto;
    background: #fff;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Steps */
.cohsar-step { margin-bottom: 20px; }

/* Form Elements */
.cohsar-form .form-group { margin-bottom: 15px; }
.cohsar-form label { display: block; font-weight: 600; margin-bottom: 6px; color: #333; }
.cohsar-form label .req { color: #d63638; }

.cohsar-form input[type="text"],
.cohsar-form input[type="email"],
.cohsar-form input[type="password"],
.cohsar-form select,
.cohsar-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.cohsar-form input:focus,
.cohsar-form textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Input Groups (Button next to input) */
.cohsar-input-group { 
    display: flex; 
    gap: 8px; 
    align-items: center; /* Align vertically */
}
.cohsar-input-group input { 
    flex-grow: 1; 
}
/* FORCE BUTTON WIDTH & NO WRAP */
.cohsar-input-group button {
    white-space: nowrap; 
    flex-shrink: 0;
    min-width: 80px;
}

/* Buttons */
.cohsar-form button.button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.cohsar-form button.button:hover { background: #135e96; }
.cohsar-form button.button:disabled { background: #a7aaad; cursor: default; }

.cohsar-form .button-large { width: 100%; font-size: 16px; padding: 12px; }

.cohsar-social-login {
    margin-top: 16px;
}
.cohsar-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    min-height: 64px;
    padding: 14px 20px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background: #fff;
    color: #5f6368;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 2px 5px rgba(60,64,67,.22);
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cohsar-google-login:hover {
    background: #fafafa;
    color: #3c4043;
    box-shadow: 0 4px 10px rgba(60,64,67,.24);
    transform: translateY(-1px);
}
.cohsar-google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}
.cohsar-google-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}
.cohsar-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 4px;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cohsar-login-divider:before,
.cohsar-login-divider:after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e5e7eb;
}
.woocommerce form.login .cohsar-social-login,
.woocommerce-form-login .cohsar-social-login {
    margin: 0 0 22px;
    max-width: 520px;
}

/* Messages */
.cohsar-success { background: #e7f7e7; color: #007017; padding: 12px; border: 1px solid #c3e6c3; border-radius: 4px; margin-bottom: 15px; }
.cohsar-error { background: #fbeaea; color: #d63638; padding: 12px; border: 1px solid #f0c3c3; border-radius: 4px; margin-bottom: 15px; }

.cohsar-ajax-msg { margin-top: 5px; font-size: 13px; font-weight: 500; min-height: 20px; }

.cohsar-verify-box {
    background: #f0f6fc;
    border: 1px solid #cce5ff;
    padding: 15px;
    border-radius: 6px;
}

.cohsar-user-badge {
    background: #f6f7f7;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #00a32a;
    margin-bottom: 15px;
}
.verified-tag {
    color: #00a32a;
    font-weight: bold;
    font-size: 12px;
    margin-left: 5px;
}
.hint { font-size: 12px; color: #777; display: block; margin-top: 4px; }
/* ===== Spam block error (merged from Spam Shield v2.4.1) ===== */
.cohsar-error-large {
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px 25px;
    border-left: 6px solid #d63638;
    margin: 16px 0;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(214,54,56,.15);
}
