/**
 * Public Form Styles
 */

.imatrix-privacy-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.imatrix-privacy-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.imatrix-privacy-message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.imatrix-privacy-message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.imatrix-privacy-intro {
    color: #555;
    margin-bottom: 24px;
    font-size: 0.95em;
}

.imatrix-privacy-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.imatrix-privacy-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.imatrix-privacy-field label {
    font-weight: 600;
    color: #333;
}

.imatrix-privacy-field input[type="email"],
.imatrix-privacy-field input[type="text"],
.imatrix-privacy-field select,
.imatrix-privacy-field textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.4;
}

.imatrix-privacy-field input:focus,
.imatrix-privacy-field select:focus,
.imatrix-privacy-field textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.imatrix-privacy-field small {
    color: #666;
    font-size: 0.85em;
}

.imatrix-privacy-field--consent label {
    font-weight: normal;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.imatrix-privacy-field--consent input[type="checkbox"] {
    margin-top: 4px;
}

/* Honeypot field - hidden from humans */
.imatrix-privacy-field--honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.imatrix-privacy-form button[type="submit"] {
    padding: 12px 24px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.imatrix-privacy-form button[type="submit"]:hover {
    background-color: #005a87;
}

.imatrix-privacy-form button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .imatrix-privacy-form-wrapper {
        padding: 12px;
    }
}

/* iMatrix Theme Override */
.imx-shell .imatrix-privacy-form-wrapper {
    max-width: 100% !important;
    width: 100%;
    margin: 0;
    padding: 20px 0;
}

/* --- Withdrawal Form Styles --- */
.imatrix-withdrawal-form-wrapper {}
.imatrix-withdrawal-recipient {
    background: #f5f5f5;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
.imatrix-withdrawal-recipient p {
    margin: 0;
    line-height: 1.5;
}
.imatrix-withdrawal-text {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 3px solid #0073aa;
}
.imatrix-withdrawal-text p {
    margin: 0 0 0.5rem;
}
.imatrix-withdrawal-help {
    color: #666;
}
.imatrix-withdrawal-signature input {
    font-style: italic;
}

/* Withdrawal checkout notice */
.imatrix-withdrawal-checkout-notice {
    font-size: 0.85em;
    color: #666;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: #f9f9f9;
    border-radius: 3px;
}
.imatrix-withdrawal-checkout-notice a {
    color: #007cba;
    text-decoration: underline;
}

/* Cart notice */
.imatrix-withdrawal-cart-notice {
    font-size: 0.85em;
    color: #666;
    margin: 0.5rem 0;
    text-align: center;
}
.imatrix-withdrawal-cart-notice a {
    color: #007cba;
    text-decoration: underline;
}

/* Product page notice */
.imatrix-withdrawal-product-notice {
    font-size: 0.8em;
    color: #666;
    margin-top: 0.5rem;
}
.imatrix-withdrawal-product-notice a {
    color: #007cba;
    text-decoration: underline;
}

/* Order details / thank you notice */
.imatrix-withdrawal-order-notice {
    font-size: 0.9em;
    color: #666;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f9f9f9;
    border-left: 3px solid #007cba;
}
