/**
 * Top Pigeon Registration — Frontend form styles.
 *
 * Designed to be theme-agnostic. The theme controls backgrounds and page layout;
 * this stylesheet only styles the form internals.
 */

/* Wrapper */
.tp-reg-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Notices */
.tp-reg-notice {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
}

.tp-reg-notice--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tp-reg-notice--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tp-reg-notice--error ul {
    margin: 0;
    padding-left: 18px;
}

.tp-reg-notice--error li {
    margin-bottom: 4px;
}

.tp-reg-notice--info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Form rows */
.tp-reg-row {
    margin-bottom: 20px;
}

.tp-reg-row--half {
    display: flex;
    gap: 16px;
}

.tp-reg-row--half > .tp-reg-field {
    flex: 1;
}

/* Fields */
.tp-reg-field {
    display: flex;
    flex-direction: column;
}

.tp-reg-field label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: inherit;
}

.tp-req {
    color: #e74c3c;
}

.tp-reg-field input[type="text"],
.tp-reg-field input[type="email"],
.tp-reg-field input[type="tel"],
.tp-reg-field input[type="password"],
.tp-reg-field select {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.tp-reg-field input:focus,
.tp-reg-field select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.tp-reg-field input.tp-field-error,
.tp-reg-field select.tp-field-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}

.tp-reg-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Inline validation message */
.tp-reg-field-error-msg {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
}

/* Submit button */
.tp-reg-submit {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.tp-reg-submit:hover {
    background: #43a047;
}

.tp-reg-submit:active {
    background: #388e3c;
}

.tp-reg-submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Turnstile container */
.tp-reg-row .cf-turnstile {
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 600px) {
    .tp-reg-row--half {
        flex-direction: column;
        gap: 20px;
    }

    .tp-reg-wrap {
        padding: 0 8px;
    }

    .tp-reg-submit {
        width: 100%;
    }
}
