/* Campaign-specific styles - matches single petition design */
.amnesty-campaign-wrapper {
    max-width: 1350px;
    margin: 0 auto;
    font-family: -apple-system, 'Amnesty Trade Gothic', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    overflow: visible;
    padding: 0 20px;
}

/* Campaign Header */
.campaign-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    color: white;
    border-radius: 12px;
    margin: 20px -20px 40px -20px;
}

.campaign-title {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.campaign-description {
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0.9;
    color: black;
}

/* Main Layout Container - Same as Single Petition */
.campaign-main-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    min-height: 600px;
    margin-top: 0;
}

/* Left Content Area */
.campaign-content-left {
    padding: 0;
    background: transparent;
    font-family: 'Amnesty Trade Gothic';
}

/* Selection Controls */
.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.selection-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 700;
}

.selection-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selection-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.selection-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.selected-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Petitions Grid */
.petitions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.petition-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.petition-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.petition-card.selected {
    border-color: #28a745;
    background: #f8fff9;
}

.petition-checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    /*background: rgba(255, 255, 255, 0.9);*/
    border-radius: 50%;
    padding: 5px;
}

.petition-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Banner Image in Card */
.petition-card-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.petition-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.petition-content {
    padding: 20px;
}

.petition-title {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #2c3e50;
    line-height: 1.3;
}

.petition-title label {
    cursor: pointer;
    display: block;
}

/* Tags in Cards */
.petition-card-tags {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge-small {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-transform: lowercase;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.petition-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.petition-target {
    font-weight: 500;
}

.petition-signatures {
    color: #28a745;
    font-weight: 600;
}

.petition-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 1em;
}

.petition-actions {
    text-align: left;
}

.view-letter-btn-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.view-letter-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Right Form Area - Exactly Same as Single Petition */
.campaign-form-right {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: block;
    position: relative;
    contain: layout;
    height: fit-content;
    min-height: auto;
}

.campaign-form-right::after {
    content: "";
    display: table;
    clear: both;
    height: 0;
    visibility: hidden;
}

.campaign-form-container {
    padding: 40px 30px;
    height: auto;
    display: block;
    position: relative;
    overflow: visible;
}

.bulk-petition-form {
    display: block;
    position: relative;
    width: 100%;
}

.bulk-petition-form .form-group {
    margin-bottom: 20px;
    display: block;
    clear: both;
    position: relative;
}

.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.form-header h3 {
    font-size: 1.6em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.form-header p {
    color: #666;
    margin: 0;
    font-size: 0.95em;
}

/* Form Styling - Same as Single Petition */
.bulk-petition-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.bulk-petition-form input[type="text"],
.bulk-petition-form input[type="email"],
.bulk-petition-form input[type="tel"],
.bulk-petition-form select,
.bulk-petition-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.bulk-petition-form input:focus,
.bulk-petition-form select:focus,
.bulk-petition-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bulk-petition-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    transform: scale(1.2);
}

/* Submit button styling - Same as Single Petition */
.bulk-submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    float: none;
    clear: both;
    position: relative;
    margin-bottom: 0;
}

.bulk-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.bulk-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 20px;
}

.btn-loader {
    font-size: 18px;
    animation: campaignSpin 1s linear infinite;
}

@keyframes campaignSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bulk-petition-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
    display: block;
    clear: both;
    position: relative;
}

.bulk-petition-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bulk-petition-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Progress Modal */
.campaign-progress-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.progress-content {
    background: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.progress-content h3 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.progress-bar-modal {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.progress-details {
    font-size: 0.9em;
    color: #666;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}

/* Letter Modal */
.campaign-letter-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 3% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 20px 30px;
    font-size: 1.3em;
    font-weight: 600;
}

.close {
    color: black;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.letter-content {
    padding: 30px;
}

.letter-section {
    margin-bottom: 25px;
}

.letter-section strong {
    color: #333;
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
}

.subject-content, .body-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .campaign-main-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .amnesty-campaign-wrapper {
        padding: 0 15px;
    }

    .campaign-title {
        font-size: 2em;
    }

    .campaign-form-container {
        padding: 30px 20px;
    }

    .selection-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .petition-card-banner {
        height: 150px;
    }

    .campaign-header {
        margin-left: -15px;
        margin-right: -15px;
     
    }
}

@media (max-width: 480px) {
    .campaign-title {
        font-size: 1.6em;
    }

    .petition-card-banner {
        height: 120px;
    }
}

/* 2-Column Petition Grid */
.petitions-grid-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Share Section in Right Sidebar */
.campaign-share-section {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    margin: 30px -30px -40px -30px;
    border-radius: 0 0 12px 12px;
}

.campaign-share-section .share-header h4 {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.campaign-share-section .share-header p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 0.95em;
}

.campaign-share-section .social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.campaign-share-section .social-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    min-width: 80px;
    justify-content: center;
}

.campaign-share-section .social-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.campaign-share-section .social-btn.facebook {
    background: #1877f2;
}

.campaign-share-section .social-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.campaign-share-section .social-btn.x {
    background: #000000;
}

.campaign-share-section .social-btn.x:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

.campaign-share-section .social-btn.whatsapp {
    background: #25d366;
}

.campaign-share-section .social-btn.whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.campaign-share-section .social-btn.copy-link {
    background: #6c757d;
}

.campaign-share-section .social-btn.copy-link:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive adjustments for 2-column grid */
@media (max-width: 768px) {
    .petitions-grid-two-column {
        grid-template-columns: 1fr;
    }
    
    .campaign-share-section .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .campaign-share-section .social-btn {
        width: 200px;
    }
}

@media (max-width: 1024px) {
    .petitions-grid-two-column {
        grid-template-columns: 1fr;
    }
}


