/* OHRA Advocacy Tool Styles */
.ohra-advocacy-container {
    width: 100%;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ohra-advocacy-header {
    background: linear-gradient(135deg, #246234, #2d7a3e);
    color: white;
    padding: 30px;
    text-align: center;
}

.ohra-flag-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.ohra-campaign-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ohra-advocacy-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.ohra-advocacy-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    line-height: 1.5;
}

/* Officials Gallery Styles */
.ohra-officials-gallery {
    display: flex;
    justify-content: center;
    gap: -15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.ohra-official-avatar {
    transition: transform 0.3s ease;
}

.ohra-official-avatar:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}

.ohra-official-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ohra-official-avatar:hover img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .ohra-officials-gallery {
        gap: -6px;
        margin: 15px 0;
    }
    
    .ohra-official-avatar img {
        width: 50px;
        height: 50px;
        border: 2px solid #ffffff;
    }
}

.ohra-step-container {
    padding: 30px;
}

.ohra-hidden {
    display: none !important;
}

.ohra-primary-btn {
    background: #246234;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ohra-primary-btn:hover {
    background: #2d7a3e;
    transform: translateY(-2px);
}

.ohra-primary-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ohra-secondary-btn {
    background: transparent;
    color: #246234;
    border: 2px solid #246234;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ohra-secondary-btn:hover {
    background: #246234;
    color: white;
}

.ohra-share-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* Share tool */
#share-tool {
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-style: solid;
    border-width: 1px;
    border-radius: 4px;
    font-weight: 600;
    transition: 0.3s linear;
    background: none;
    color: #246234;
    border-color: #246234;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

/* Share tool (hover) */
#share-tool:hover {
    background-color: #246234;
    color: #ffffff;
}

.ohra-build-own, .ohra-share-link {
    background: none;
    border: none;
    color: #246234;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.ohra-build-own:hover, .ohra-share-link:hover {
    text-decoration: underline;
}

.ohra-step-header {
    position: relative;
    margin-bottom: 30px;
}

.ohra-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ohra-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.ohra-step-header h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.ohra-step-header p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.ohra-reps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.ohra-rep-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.ohra-rep-card:hover {
    border-color: #246234;
    transform: translateY(-2px);
}

.ohra-rep-card.selected {
    border-color: #246234;
    background: #f8fbf9;
}

.ohra-rep-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: #f0f0f0;
    overflow: hidden;
}

.ohra-rep-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ohra-rep-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.ohra-rep-party {
    font-size: 10px;
    color: #666;
    margin: 5px 0 0 0;
}

.ohra-rep-district {
    font-size: 10px;
    color: #246234;
    font-weight: 600;
    margin: 2px 0 0 0;
}

.ohra-step-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.ohra-step-actions button {
    flex: 1;
}

.ohra-email-composer {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.ohra-email-to, .ohra-email-subject, .ohra-email-message {
    margin-bottom: 20px;
}

.ohra-email-composer label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ohra-selected-reps {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.ohra-selected-rep-item {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    gap: 5px;
    padding: 0;
    background: none;
    border: none;
    min-width: 0;
    flex-shrink: 0;
}

.ohra-rep-avatar {
    flex-shrink: 0;
    background-color: transparent;
    margin-bottom: 0px;
    width: auto !important;
    height: auto !important;
}

.ohra-rep-avatar img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #246234;
    object-fit: cover;
    background: white;
}

.ohra-rep-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ohra-rep-title {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* View all recipients link */
.ohra-view-all-recipients {
    color: #246234;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
}

.ohra-view-all-recipients:hover {
    text-decoration: underline;
}

/* Recipients modal */
.ohra-recipients-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.ohra-recipients-modal {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.ohra-recipients-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.ohra-recipients-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ohra-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ohra-modal-close:hover {
    background: #f0f0f0;
}

.ohra-recipients-modal-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 769px and larger screen sizes */
@media (min-width: 769px) {
    .ohra-selected-rep-item {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 0px;
        padding-bottom: 0px;
    }
}

.ohra-selected-rep-tag {
    background: #246234;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ohra-remove-rep {
    background: #dc3545;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.ohra-remove-rep:hover {
    background: #c82333;
}

.ohra-change-reps {
    color: #246234;
    font-size: 12px;
    text-decoration: none;
}

.ohra-change-reps:hover {
    text-decoration: underline;
}

#email-subject {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

#email-message {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 200px;
    box-sizing: border-box;
}

.ohra-message-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.ohra-expand-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.ohra-sender-form {
    margin-bottom: 30px;
}

.ohra-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.ohra-form-row input, .ohra-form-row select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.ohra-form-row select {
    max-width: 120px;
}

.ohra-form-consent {
    margin-bottom: 15px;
}

.ohra-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.ohra-checkbox-label input[type="checkbox"] {
    margin: 0;
}

.ohra-privacy-note {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.ohra-privacy-note a {
    color: #246234;
}

.ohra-success-content {
    text-align: center;
    padding: 40px 20px;
}

.ohra-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.ohra-success-content h3 {
    color: #246234;
    margin-bottom: 15px;
}

.ohra-success-content p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.ohra-success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.ohra-success-actions button {
    flex: 0 0 auto;
    min-width: 160px;
}

/* Loading State */
.ohra-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ohra-loading .ohra-primary-btn:after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ohra-advocacy-container {
        margin: 20px;
        border-radius: 8px;
    }
    
    .ohra-step-container {
        padding: 20px;
    }
    
    .ohra-advocacy-header {
        padding: 20px;
    }
    
    .ohra-campaign-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .ohra-advocacy-header h2 {
        font-size: 20px;
    }
    
    .ohra-reps-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .ohra-step-actions {
        flex-direction: column;
    }
    
    .ohra-form-row {
        flex-direction: column;
    }
    
    .ohra-form-row select {
        max-width: none;
    }
    
    .ohra-success-actions {
        flex-direction: column;
    }
    
    .ohra-share-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Send Confirmation Modal Styles */
.ohra-send-confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.ohra-send-confirmation-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.ohra-send-confirmation-modal-header {
    background: #246234;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.ohra-send-confirmation-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ohra-send-confirmation-modal-subtitle {
    margin: 8px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.ohra-send-confirmation-modal-content {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.ohra-send-confirmation-recipients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.ohra-send-confirmation-rep-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ohra-send-confirmation-rep-avatar {
    flex-shrink: 0;
}

.ohra-send-confirmation-rep-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #246234;
    object-fit: cover;
    background: white;
}

.ohra-send-confirmation-rep-info {
    flex: 1;
    min-width: 0;
}

.ohra-send-confirmation-rep-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    margin: 0;
    line-height: 1.2;
}

.ohra-send-confirmation-modal-actions {
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.ohra-send-confirmation-cancel-btn {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ohra-send-confirmation-cancel-btn:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

.ohra-send-confirmation-send-btn {
    background: #246234;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ohra-send-confirmation-send-btn:hover {
    background: #1a4d29;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .ohra-send-confirmation-modal {
        width: 95%;
        margin: 20px;
    }
    
    .ohra-send-confirmation-recipients-grid {
        grid-template-columns: 1fr;
    }
    
    .ohra-send-confirmation-modal-actions {
        flex-direction: column-reverse;
    }
    
    .ohra-send-confirmation-cancel-btn,
    .ohra-send-confirmation-send-btn {
        width: 100%;
    }
}

/* Enhanced Representative Finder Styles */
.ohra-rep-finder {
    margin-bottom: 24px;
}

.ohra-finder-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    padding: 4px;
    margin-bottom: 0;
    border: 1px solid #e9ecef;
    border-bottom: none;
}

.ohra-finder-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.ohra-finder-tab:hover {
    background: rgba(36, 98, 52, 0.1);
    color: #246234;
}

.ohra-finder-tab.active {
    background: #246234;
    color: white;
}

.ohra-finder-content {
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 24px;
    min-height: 200px;
}

/* Chamber Selection Styles */
.ohra-chamber-selector {
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ohra-chamber-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ohra-chamber-tab {
    flex: 1;
    background: white;
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}

.ohra-chamber-tab:hover {
    background: rgba(36, 98, 52, 0.1);
    color: #246234;
    border-color: #246234;
}

.ohra-chamber-tab.active {
    background: #246234;
    color: white;
    border-color: #246234;
}

.ohra-chamber-help {
    text-align: center;
    margin-top: 8px;
}

.ohra-chamber-help small {
    color: #666;
    font-size: 12px;
}

/* ZIP Code Lookup Styles */
.ohra-zip-lookup {
    text-align: center;
}

.ohra-zip-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
    text-transform:uppercase;

}

.ohra-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 12px auto;
    align-items: stretch;
}

.ohra-zip-input {
    flex: 1;
    border: 2px solid #2d6964;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    min-width: 0;
    padding-top:10px!important;
	padding-bottom:10px!important;


}

.ohra-zip-input:focus {
    outline: none;
    border-color: #246234;
    box-shadow: 0 0 0 3px rgba(36, 98, 52, 0.1);
}

.ohra-zip-search-btn {
    background: #246234;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.ohra-zip-search-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #246234;
    border-radius: 12px;
    z-index: 0;
    animation: pulse-border 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-border {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    40% {
        opacity: 0.8;
        transform: scale(1.02);
    }
    80% {
        opacity: 0;
        transform: scale(1.02);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.ohra-zip-search-btn:hover {
    background: #960516;
    transform: translateY(-1px);
  
}

.ohra-zip-search-btn:active {
    transform: translateY(0);
}

.ohra-zip-search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ohra-zip-help {
    margin-bottom: 20px;
    color: #666;
}

.ohra-zip-results {
    text-align: left;
    margin-top: 20px;
}

.ohra-zip-results h4 {
    color: #246234;
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
}

.ohra-zip-results .result-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.ohra-zip-region-info {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.ohra-region-name {
    display: inline-block;
    font-weight: 600;
    color: #246234;
    margin-right: 12px;
}

.ohra-zip-region-info .ohra-district-count,
.ohra-region-results .ohra-district-count,
.ohra-district-count {
    display: inline-block !important;
    background: #246234 !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-left: 8px !important;
    white-space: nowrap !important;
}

.ohra-zip-no-results,
.ohra-zip-error {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 16px;
}

.ohra-zip-error {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
}

.ohra-zip-reps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* Region Browse Styles */
.ohra-region-browse {
    text-align: center;
}

.ohra-region-selector {
    max-width: 400px;
    margin: 0 auto 20px auto;
}

.ohra-region-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.ohra-region-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.ohra-region-select:focus {
    outline: none;
    border-color: #246234;
    box-shadow: 0 0 0 3px rgba(36, 98, 52, 0.1);
}

.ohra-region-results {
    text-align: left;
}

.ohra-region-results h4 {
    color: #246234;
    font-size: 18px;
    margin-bottom: 8px;
    text-align: center;
}

.ohra-region-results .region-description {
    text-align: center;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
    line-height: 1.4;
}

.ohra-region-results .region-cities {
    text-align: center;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.ohra-region-results .region-stats {
    text-align: center;
    color: #246234;
    margin-bottom: 16px;
    font-size: 13px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #246234;
}

.ohra-region-header {
    border-bottom: 2px solid #e8f5e8;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.region-info-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    justify-content: center;
}

.region-stat-item {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #246234;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.region-stat-item strong {
    color: #246234;
}

@media (max-width: 768px) {
    .region-info-stats {
        flex-direction: column;
    }
    
    .region-stat-item {
        min-width: auto;
        text-align: left;
    }
}

.ohra-region-help {
    margin-top: 8px;
    text-align: center;
}

.no-reps-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* Manual Select Styles */
.ohra-manual-select {
    text-align: left;
}

.ohra-search-filter {
    margin-bottom: 20px;
}

.ohra-rep-filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.ohra-rep-filter-input:focus {
    outline: none;
    border-color: #246234;
    box-shadow: 0 0 0 3px rgba(36, 98, 52, 0.1);
}

/* Selected Representatives Section */
.ohra-selected-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ohra-selected-section h4 {
    color: #246234;
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
}

.ohra-selected-reps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ohra-selected-rep-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.ohra-selected-rep-card:hover {
    border-color: #246234;
    box-shadow: 0 2px 8px rgba(36, 98, 52, 0.1);
}

.ohra-selected-rep-card .rep-name {
    font-weight: 600;
    color: #246234;
    margin-bottom: 4px;
}

.ohra-selected-rep-card .rep-details {
    font-size: 12px;
    color: #666;
}

.ohra-selected-rep-card .remove-rep-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.ohra-selected-rep-card .remove-rep-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.ohra-selection-actions {
    text-align: center;
}

.ohra-clear-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ohra-clear-btn:hover {
    background: #5a6268;
}

/* Representative Cards Enhancement */
.ohra-rep-card.found-by-search {
    border-color: #246234;
    box-shadow: 0 0 0 2px rgba(36, 98, 52, 0.1);
}

.ohra-rep-card.found-by-search::before {
    content: "📍";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #246234;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Loading States */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Error States */
.ohra-search-error {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 16px;
    color: #2d3436;
    text-align: center;
}

.ohra-search-error p {
    margin: 0;
    font-size: 14px;
}

/* No Results States */
.ohra-no-results {
    text-align: center;
    padding: 24px;
    color: #666;
}

.ohra-no-results h5 {
    color: #333;
    margin-bottom: 8px;
}

.ohra-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    text-align: left;
}

.ohra-suggestions-list li {
    margin: 8px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.ohra-suggestion-link {
    color: #246234;
    text-decoration: none;
    font-weight: 500;
}

.ohra-suggestion-link:hover {
    text-decoration: underline;
}

.ohra-suggestion-desc {
    color: #666;
    font-size: 12px;
    margin-left: 8px;
}

/* Enhanced Responsive Design for Finder */
@media (max-width: 768px) {
    .ohra-finder-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .ohra-finder-tab {
        flex: none;
        text-align: center;
    }
    
    .ohra-input-group {
        max-width: 100%;
        gap: 8px;
    }
    
    .ohra-zip-search-btn {
        width: 100%;
    }
    
    .ohra-selected-reps-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .ohra-finder-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .ohra-finder-content {
        padding: 12px;
    }
    
    .ohra-zip-input,
    .ohra-region-select {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .ohra-selected-section {
        padding: 16px;
    }
}

/* Enhanced Selected Representatives Section */
.ohra-selected-section {
    background: linear-gradient(135deg, #f8fbf9, #f0f8f0);
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 2px 8px rgba(36, 98, 52, 0.08);
}

.ohra-selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8f5e8;
}

.ohra-selected-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #246234;
}

.ohra-selected-icon {
    font-size: 20px;
    color: #2d7a3e;
}

.ohra-clear-all-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ohra-clear-all-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.ohra-selected-reps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ohra-selected-rep-item {
    background: white;
    border: 1px solid #e8f5e8;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(36, 98, 52, 0.1);
}

.ohra-selected-rep-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 98, 52, 0.15);
}

.ohra-selected-rep-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f8f0;
    border: 2px solid #246234;
    flex-shrink: 0;
}

.ohra-selected-rep-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ohra-selected-rep-info {
    flex: 1;
    min-width: 0;
}

.ohra-selected-rep-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.ohra-selected-rep-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ohra-selected-rep-district {
    font-size: 13px;
    font-weight: 600;
    color: #246234;
    background: #e8f5e8;
    padding: 4px 8px;
    border-radius: 4px;
}

.ohra-selected-rep-party {
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.ohra-remove-selected-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ohra-remove-selected-btn:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.ohra-selected-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Responsive adjustments for selected section */
@media (max-width: 768px) {
    .ohra-selected-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .ohra-clear-all-btn {
        align-self: flex-end;
    }
    
    .ohra-selected-rep-item {
        padding: 12px;
        gap: 12px;
    }
    
    .ohra-selected-rep-avatar {
        width: 40px;
        height: 40px;
    }
    
    .ohra-selected-rep-name {
        font-size: 14px;
    }
    
    .ohra-selected-rep-details {
        gap: 8px;
    }
    
    .ohra-selected-rep-district,
    .ohra-selected-rep-party {
        font-size: 12px;
    }
}

/* Temporarily hide specific tabs */
.ohra-finder-tab[data-tab="manual-select"],
.ohra-finder-tab[data-tab="region-browse"] {
    display: none !important;
}

/* Hide corresponding content panels */
#manual-select-content,
#region-browse-content {
    display: none !important;
}

/* Hide the entire tabs container since only ZIP lookup remains */
.ohra-finder-tabs {
    display: none !important;
}

/* Confirmation Dialog Styles */
.ohra-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.ohra-confirmation-dialog {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ohra-dialog-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.ohra-dialog-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #246234;
}

.ohra-dialog-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.ohra-dialog-content {
    padding: 20px 24px;
    text-align: center;
}

.ohra-confirmed-reps-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ohra-reps-photos {
    display: flex;
    justify-content: center;
    position: relative;
}

.ohra-reps-photos img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0e0e0;
    border: 2px solid white;
    margin-left: -8px;
}

.ohra-reps-photos img.party-dem {
    border-color: #1f5582;
}

.ohra-reps-photos img.party-rep {
    border-color: #c41e3a;
}

.ohra-reps-photos img:first-child {
    margin-left: 0;
}

.ohra-more-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 2px solid white;
    margin-left: -8px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-align: center;
    line-height: 1;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.ohra-reps-names {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    max-width: 300px;
}

.ohra-dialog-actions {
    padding: 16px 24px 20px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    border-top: 1px solid #e0e0e0;
}

.ohra-btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 80px;
}

.ohra-btn-secondary:hover {
    background: #e8e8e8;
    color: #555;
}

.ohra-btn-primary {
    background: #246234;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 80px;
}

.ohra-btn-primary:hover {
    background: #1d4e2a;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .ohra-confirmation-dialog {
        width: 95%;
        margin: 20px;
    }
    
    .ohra-dialog-actions {
        flex-direction: column;
    }
    
    .ohra-btn-secondary,
    .ohra-btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* Final Review Styles */
.ohra-final-review {
    margin: 20px 0;
}

.ohra-review-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #246234;
}

.ohra-review-section h4 {
    margin: 0 0 12px 0;
    color: #246234;
    font-size: 16px;
    font-weight: 600;
}

.ohra-user-summary .user-detail {
    margin-bottom: 6px;
    font-size: 14px;
}

.ohra-user-summary .user-detail strong {
    color: #333;
    min-width: 60px;
    display: inline-block;
}

/* Toast Dialog Styles */
.ohra-toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.ohra-toast-overlay.show {
    opacity: 1;
}

.ohra-toast-dialog {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 320px;
    max-width: 400px;
    margin: 20px;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ohra-toast-overlay.show .ohra-toast-dialog {
    transform: scale(1) translateY(0);
}

.ohra-toast-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    line-height: 1;
}

.ohra-toast-icon.success {
    color: #246234;
}

.ohra-toast-icon.error {
    color: #dc3545;
}

.ohra-toast-icon.info {
    color: #007bff;
}

.ohra-toast-message {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 500;
}

.ohra-toast-button {
    background: #246234;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.ohra-toast-button:hover {
    background: #2d7a3e;
    transform: translateY(-1px);
}

.ohra-toast-button.error {
    background: #dc3545;
}

.ohra-toast-button.error:hover {
    background: #c82333;
}

.ohra-toast-button.info {
    background: #007bff;
}

.ohra-toast-button.info:hover {
    background: #0056b3;
}

@media (max-width: 480px) {
    .ohra-toast-dialog {
        min-width: 280px;
        padding: 24px;
        margin: 15px;
    }
    
    .ohra-toast-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .ohra-toast-message {
        font-size: 15px;
        margin-bottom: 20px;
    }
}

/* Ohra rep avatar */
#selected-reps-display .ohra-selected-rep-item .ohra-rep-avatar{
	background-color:transparent;
	margin-bottom:0px;
}

/* Ohra Unknowned rep item */
#selected-reps-display .ohra-selected-rep-item{
	justify-content:center;
	align-content:center;
	gap: 5px;
}

/* Image */
#selected-reps-display .ohra-rep-avatar img{
	width:25px;
	height:25px;
}

/* Ohra rep avatar */
#brx-content #brxe-tmpqhd #ohra-advocacy-tool .ohra-step-container .ohra-email-composer .ohra-email-to #selected-reps-display .ohra-selected-rep-item .ohra-rep-avatar{
	width:auto !important;
	height:auto !important;
}

/* Ohra share info */
#ohra-advocacy-tool .ohra-share-info{
	padding:25px;
}



/* 769px and larger screen sizes */
@media (min-width:769px){


	/* Ohra Unknowned rep item */
	#selected-reps-display .ohra-selected-rep-item{
		padding-left:10px;
		padding-right:10px;
		padding-top:0px;
		padding-bottom:0px;
	}

	
}

/* 480px and smaller screen sizes */
@media (max-width:480px){

	/* View all recipients */
	#view-all-recipients{
		display:flex;
		justify-content:center;
		align-items:center;
	}
	
	/* Ohra Unknowned rep item */
	#recipients-modal-content .ohra-selected-rep-item{
		justify-content:flex-start;
		align-items:center;
		padding-top:7px;
		padding-bottom:7px;
		
	}
	
	/* Ohra rep avatar */
	#recipients-modal-content .ohra-selected-rep-item .ohra-rep-avatar{
		margin-left:0px;
		margin-right:0px;
	}
	
}

/* 478px and smaller screen sizes */
@media (max-width:478px){

	/* View all recipients */
	#view-all-recipients{
		height:auto !important;
	}
	
}

/* --- Progress Modal for Sending Emails --- */
.ohra-progress-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(36, 98, 52, 0.18);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}
.ohra-progress-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(36,98,52,0.18);
    padding: 36px 32px 28px 32px;
    min-width: 320px;
    max-width: 95vw;
    text-align: center;
    position: relative;
}
.ohra-progress-header {
    font-size: 1.35rem;
    font-weight: 700;
    color: #246234;
    margin-bottom: 24px;
}
.ohra-progress-bar-container {
    width: 100%;
    background: #f0f4f2;
    border-radius: 8px;
    height: 12px;
    margin-bottom: 28px;
    overflow: hidden;
}
.ohra-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #246234 60%, #2d7a3e 100%) !important;
    width: 0%;
    transition: width 0.5s cubic-bezier(.4,2,.3,1);
    border-radius: 8px;
    min-width: 2px;
}
.ohra-progress-stages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.ohra-progress-stage {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: #888;
    opacity: 0.7;
    transition: color 0.3s, opacity 0.3s;
}
.ohra-progress-stage.active {
    color: #246234;
    font-weight: 700;
    opacity: 1;
}
.ohra-progress-stage.completed {
    color: #2d7a3e;
    opacity: 1;
}
.ohra-progress-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0eae5;
    border: 2px solid #246234;
    margin-right: 2px;
    animation: pulseDot 1.2s infinite alternate;
}
.ohra-progress-stage.active .ohra-progress-dot {
    background: #246234;
    border-color: #2d7a3e;
    animation: pulseDot 0.7s infinite alternate;
}

/* Span Tag */
.ohra-signature-stats .ohra-total-signatures span{
	text-transform:uppercase;
	font-size:35px;
}

/* Span Tag */
.ohra-signature-list .ohra-signature-item span{
	font-weight:500;
	font-size:19px;
}

/* Strong Tag */
.ohra-call-to-action .ohra-action-text strong{
	font-weight:500;
	text-decoration:underline;
}

/* Ohra action text */
.ohra-signature-header .ohra-call-to-action .ohra-action-text{
	font-weight:400;
	font-size:18px;
}

/* Heading */
.ohra-recent-signatures-heading{
	font-family:'TT Norms';
	font-weight:500;
	font-size:22px;
}

/* Ohra progress text */
.ohra-signature-header .ohra-progress-section .ohra-progress-text{
	font-size:16px;
}

/* Strong Tag */
.ohra-call-to-action .ohra-recent-activity strong{
	font-weight:600;
}

/* Ohra mini counter */
.ohra-mini-counter{
	background-color:transparent;
	border-style:none;
	font-family:'TT Norms';
	font-weight:600;
	color:#0a3214;
	padding:0px;
}

/* Ohra mini goal */
.ohra-mini-counter .ohra-mini-stats .ohra-mini-goal{
	color:#0a3214;
	font-weight:400;
}

/* Ohra mini label */
.ohra-mini-counter .ohra-mini-stats .ohra-mini-label{
	color:#0a3214;
	font-weight:400;
	font-size: 15px;
	margin-left:0px;
}

/* Ohra mini separator */
.ohra-mini-counter .ohra-mini-stats .ohra-mini-separator{
	color:#0a3214;
}

/* Ohra mini progress bar */
.ohra-mini-counter .ohra-mini-progress .ohra-mini-progress-bar{
	border-style:solid;
	border-width:1px;
	border-color:#020202;
	background-color:transparent;
}

/* Span Tag */
.ohra-signature-list .ohra-more-signatures span{
	font-size:16px;
}

/* Ohra signature date */
.ohra-signature-list .ohra-signature-item .ohra-signature-date{
	font-size:15px;
}

/* Ohra signature header */
.ohra-signature-header{
	padding-top:50px;
	padding-bottom:50px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulseDot {
    from { box-shadow: 0 0 0 0 #24623433; }
    to { box-shadow: 0 0 8px 4px #24623444; }
}
@media (max-width: 480px) {
    .ohra-progress-modal {
        padding: 18px 6vw 18px 6vw;
        min-width: 0;
    }
    .ohra-progress-header {
        font-size: 1.1rem;
    }
    .ohra-progress-bar-container {
        height: 10px;
    }
    .ohra-progress-stage {
        font-size: 15px;
    }
}
