/* Petition-specific styles */

/* Petition content styling */
.important-notice {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.important-notice h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.important-notice h3:first-child {
    margin-top: 0;
}

.important-notice p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.important-notice ul,
.important-notice ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.important-notice li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.important-notice em {
    color: #666;
    font-size: 0.9rem;
}

/* Signature Count Display */
.signature-count {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.signature-count h2 {
    color: var(--white);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.count-display {
    padding: 2rem 0;
}

.count-number {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.count-label {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.count-breakdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.breakdown-number {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.breakdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.count-separator {
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.7;
}

/* Form Styles */
.petition-form form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-help {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Turnstile container */
.cf-turnstile {
    margin: 1rem 0;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin: 1.5rem 0;
    display: none;
}

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

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

.form-message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    display: block;
}

/* Form Buttons */
.petition-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.petition-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.petition-form button[type="submit"]:not(:disabled):hover {
    transform: translateY(-2px);
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.6s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .count-number {
        font-size: 3rem;
    }

    .count-label {
        font-size: 1rem;
    }

    .petition-form form {
        max-width: 100%;
    }
}
