/* Term Limit Pledge Form Styles */

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

.tlp-pledge-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tlp-form-intro {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tlp-form-intro h3 {
    margin: 0 0 10px 0;
    color: #1a365d;
    font-size: 24px;
}

.tlp-form-intro p {
    margin: 0;
    color: #666;
}

.tlp-form-group {
    margin-bottom: 20px;
}

.tlp-form-row {
    display: flex;
    gap: 20px;
}

.tlp-form-row .tlp-half {
    flex: 1;
}

.tlp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.tlp-form-group .required {
    color: #c00;
}

.tlp-form-group input[type="text"],
.tlp-form-group input[type="email"],
.tlp-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tlp-form-group input:focus,
.tlp-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.tlp-field-note {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #666;
}

.tlp-consent,
.tlp-gdpr {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.tlp-consent label,
.tlp-gdpr label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.tlp-consent input[type="checkbox"],
.tlp-gdpr input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.tlp-gdpr {
    margin-top: -10px;
    background: transparent;
    font-size: 14px;
}

.tlp-gdpr a {
    color: #0073aa;
}

.tlp-form-submit {
    margin-top: 30px;
    text-align: center;
}

.tlp-submit-btn {
    background: #1a365d;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.tlp-submit-btn:hover {
    background: #2c5282;
}

.tlp-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.tlp-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

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

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

/* Loading state */
.tlp-pledge-form.loading .tlp-submit-btn {
    position: relative;
    color: transparent;
}

.tlp-pledge-form.loading .tlp-submit-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: tlp-spin 0.8s linear infinite;
}

@keyframes tlp-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .tlp-pledge-form {
        padding: 20px;
    }

    .tlp-form-row {
        flex-direction: column;
        gap: 0;
    }

    .tlp-submit-btn {
        width: 100%;
    }
}
