/* Simple Petition Styles */

.simple-petition-container {
    max-width: 500px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Progress Section */
.sp-progress-section {
    margin-bottom: 30px;
}

.sp-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.sp-progress-labels span {
    line-height: 1.4;
}

.sp-progress-labels strong {
    font-size: 24px;
    display: block;
}

.sp-progress-bar {
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.sp-progress-fill {
    height: 100%;
    background: #c94a4a;
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 2%;
}

/* Form Section */
.sp-form-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sp-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0;
}

.sp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sp-row {
    display: flex;
    gap: 15px;
}

.sp-field {
    position: relative;
}

.sp-field.sp-half {
    flex: 1;
}

.sp-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.sp-field input[type="text"],
.sp-field input[type="email"],
.sp-field select,
.sp-field textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    background: transparent;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sp-field input:focus,
.sp-field select:focus,
.sp-field textarea:focus {
    outline: none;
    border-bottom-color: #c94a4a;
}

.sp-field input::placeholder,
.sp-field textarea::placeholder {
    color: #999;
}

.sp-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
}

.sp-field textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.sp-char-count {
    position: absolute;
    right: 0;
    bottom: -18px;
    font-size: 11px;
    color: #999;
}

/* Submit Button */
.sp-submit {
    text-align: center;
    margin-top: 10px;
}

.sp-button {
    background: #e8b4b4;
    color: #fff;
    border: none;
    padding: 12px 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.sp-button:hover {
    background: #c94a4a;
}

.sp-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.sp-message {
    text-align: center;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}

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

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

/* Thank You State */
.sp-thank-you {
    text-align: center;
    padding: 40px 20px;
}

.sp-thank-you h3 {
    color: #155724;
    margin-bottom: 10px;
}

.sp-thank-you p {
    color: #666;
}

/* Loading State */
.sp-loading .sp-button {
    position: relative;
    color: transparent;
}

.sp-loading .sp-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: sp-spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 500px) {
    .sp-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .sp-form-section {
        padding: 20px;
    }
    
    .sp-progress-labels strong {
        font-size: 20px;
    }
}
