/* Container for the whole form */
.rcg-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Form inputs and labels */
.rcg-form-group {
    margin-bottom: 20px;
}

.rcg-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.rcg-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.rcg-input:focus {
    outline: none;
    border-color: #0073aa; /* A standard WordPress blue */
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.2);
}

/* Submit button */
.rcg-submit {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rcg-submit:hover {
    background-color: #005177;
}

/* Success and Error messages */
.rcg-success, .rcg-error {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.rcg-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rcg-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Referral code display and copy button */
.rcg-code-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 5px;
    margin-top: 20px;
}

.rcg-code {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    letter-spacing: 2px;
}

.rcg-copy-btn {
    padding: 8px 12px;
    background-color: #5cb85c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rcg-copy-btn:hover {
    background-color: #4cae4c;
}