/**
 * Basic Legal Page Generator Styles
 */

.blpg-container {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 700px; /* Limit width for better readability */
    margin-left: auto;
    margin-right: auto;
}

.blpg-container h2,
.blpg-container h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.blpg-form-group {
    margin-bottom: 15px;
}

.blpg-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.blpg-form-group input[type="text"],
.blpg-form-group input[type="email"],
.blpg-form-group input[type="tel"],
.blpg-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.blpg-form-group select {
    /* Appearance for cross-browser consistency */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: .65em auto;
    padding-right: 30px; /* Make space for the arrow */
}

.blpg-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.blpg-button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    text-align: center;
}

.blpg-button-primary {
    background-color: #0073aa; /* WordPress blue */
    color: white;
}

.blpg-button-primary:hover {
    background-color: #005177;
}

.blpg-button-secondary {
    background-color: #6c757d; /* Gray */
    color: white;
}

.blpg-button-secondary:hover {
    background-color: #5a6268;
}

.blpg-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.blpg-output-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blpg-output-area textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    font-family: monospace; /* Easier to read generated code/text */
    margin-bottom: 10px;
    min-height: 250px; /* Ensure it's reasonably tall */
    resize: vertical; /* Allow vertical resizing */
}

.blpg-error {
    color: #dc3232; /* WordPress error red */
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

.blpg-disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.blpg-disclaimer strong {
    font-weight: bold;
}


/* Responsive adjustments */
@media (max-width: 600px) {
    .blpg-container {
        padding: 15px;
    }

    .blpg-form-actions {
        flex-direction: column; /* Stack buttons vertically */
    }

    .blpg-button {
        width: 100%; /* Make buttons full width */
    }
}
