/**
 * Prokon Revocation – Form Styles
 *
 * @package Prokon\Revocation
 */

.prokon-revocation-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.prokon-revocation-form h3 {
    margin: 1.5em 0 0.75em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #ddd;
    font-size: 1.1em;
}

.prokon-revocation-form h3:first-child {
    margin-top: 0;
}

.prokon-revocation-fields {
    margin-bottom: 1.5em;
}

.prokon-field {
    margin-bottom: 1em;
}

.prokon-field label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 600;
    font-size: 0.9em;
}

.prokon-field input[type="text"],
.prokon-field input[type="email"],
.prokon-field input[type="date"],
.prokon-field textarea {
    width: 100%;
    padding: 0.5em 0.75em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.prokon-field input:focus,
.prokon-field textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.prokon-field input.prokon-field-error,
.prokon-field textarea.prokon-field-error {
    border-color: #dc3232;
}

.prokon-field .required {
    color: #dc3232;
}

/* Two-column layout */
.prokon-field-row {
    display: flex;
    gap: 1em;
}

.prokon-field-row--half .prokon-field {
    flex: 1;
}

.prokon-field-row--third .prokon-field {
    flex: 1;
}

.prokon-field-row--third .prokon-field--wide {
    flex: 2;
}

/* Checkbox field */
.prokon-field--checkbox {
    margin-top: 1.5em;
}

.prokon-field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    font-weight: normal;
    cursor: pointer;
}

.prokon-field--checkbox input[type="checkbox"] {
    margin-top: 0.2em;
    flex-shrink: 0;
}

/* Submit button */
.prokon-field--submit {
    margin-top: 1.5em;
}

.prokon-field--submit .button {
    display: inline-block;
    padding: 0.75em 2em;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.prokon-field--submit .button:hover {
    background: #005d8c;
}

.prokon-field--submit .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.prokon-revocation-message {
    padding: 1em 1.25em;
    margin-bottom: 1.5em;
    border-radius: 4px;
    line-height: 1.5;
}

.prokon-revocation-message--success {
    background: #ecf7ed;
    border: 1px solid #46b450;
    color: #1e6923;
}

.prokon-revocation-message--error {
    background: #fef7f1;
    border: 1px solid #dc3232;
    color: #8b1a1a;
}

/* Responsive */
@media (max-width: 600px) {
    .prokon-field-row {
        flex-direction: column;
        gap: 0;
    }
}
