/* ========================================
   CONSULTATION DETAIL - Styles
   Matches petition detail page design
   ======================================== */

/* ========================================
   LAYOUT
   ======================================== */

.consultation-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.consultation-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 50px;
    align-items: start;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.consultation-main {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Image */
.consultation-detail-image {
    margin: -40px -40px 30px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
    height: 350px;
}

.consultation-detail-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.consultation-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title */
.consultation-title-main {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

/* Meta */
.consultation-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.consultation-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.consultation-detail-meta .meta-item i {
    color: var(--consultation-green, #0E8040);
}

.consultation-detail-meta .status-badge {
    position: static;
}

.consultation-detail-meta .type-badge {
    margin-bottom: 0;
}

/* Description */
.consultation-detail-description {
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.consultation-detail-description p {
    margin-bottom: 20px;
}

/* ========================================
   DOCUMENTS SECTION
   ======================================== */

.consultation-documents-section {
    margin-bottom: 40px;
    background: #fcfcfc;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #f0f0f0;
}

.consultation-documents-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #333;
}

.consultation-documents-section h3 i {
    color: var(--consultation-green, #0E8040);
    margin-right: 8px;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.document-item:hover {
    border-color: var(--consultation-green, #0E8040);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.document-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff5f5;
    color: #dc3545;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.document-content {
    flex: 1;
}

.document-content a {
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.document-content a:hover {
    color: var(--consultation-green, #0E8040);
}

.document-type {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 2px;
}

/* ========================================
   SECTIONS & QUESTIONS
   ======================================== */

.consultation-sections-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.consultation-sections-area > h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #333;
}

.consultation-sections-area > h3 i {
    color: var(--consultation-green, #0E8040);
    margin-right: 8px;
}

.section-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.section-header {
    background: #f8f9fa;
    border-bottom: 2px solid var(--consultation-green, #0E8040);
    padding: 18px 20px;
}

.section-header h4 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.section-desc {
    margin: 8px 0 0;
    color: #666;
    font-size: 0.9rem;
}

.section-body {
    padding: 20px;
}

.section-reference {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-reference h6 {
    color: #888;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.reference-text {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.9rem;
    color: #495057;
    margin: 0;
    background: white;
    padding: 12px;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
}

/* Questions */
.question-item {
    padding: 18px;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 12px;
}

.question-item:last-child {
    margin-bottom: 0;
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.question-number {
    background: var(--consultation-green, #0E8040);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.question-text {
    font-weight: 500;
    color: #212529;
    flex: 1;
    line-height: 1.5;
}

.required-badge {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

.question-help {
    font-size: 0.875rem;
    color: #888;
    margin: 0 0 10px 40px;
}

.question-type-info {
    margin: 8px 0 0 40px;
}

.q-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
}

.q-type-badge i {
    margin-right: 4px;
}

.choices-preview {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.choices-preview li {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
}

.no-questions {
    color: #999;
    font-style: italic;
}

/* ========================================
   SIDEBAR
   ======================================== */

.consultation-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Action Card (Green Gradient - like petition red card) */
.consultation-action-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #0E8040 0%, #0A6030 100%);
    color: #ffffff;
}

.stats-section-featured {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-counter {
    margin-bottom: 15px;
}

.stats-counter .count {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -2px;
}

.stats-counter .label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-mini {
    text-align: center;
}

.stat-mini-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-mini-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.days-remaining {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.days-remaining i {
    margin-right: 5px;
}

.progress-bar-container {
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-main {
    height: 100%;
    width: 100%;
}

.progress-bar-main .progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 7px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-goal {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.progress-goal strong {
    color: #ffffff;
}

/* Action Buttons Area */
.action-buttons-area {
    padding: 30px;
}

.cta-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-text {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #ffffff;
}

.btn-participate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    padding: 16px 24px;
    background: #ffffff;
    color: #0E8040;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-participate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
    color: #0A6030;
    text-decoration: none;
}

.pulse-animation {
    animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.closed-status {
    text-align: center;
    padding: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.closed-status i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

.closed-status h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.closed-status p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Links Card */
.consultation-links-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.consultation-links-card h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.consultation-links-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.consultation-links-card ul li {
    margin-bottom: 10px;
}

.consultation-links-card ul li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.consultation-links-card ul li a:hover {
    background: #f8f9fa;
    color: var(--consultation-green, #0E8040);
}

.consultation-links-card ul li a i {
    color: var(--consultation-green, #0E8040);
    width: 20px;
    text-align: center;
}

/* Share Card */
.consultation-share-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.consultation-share-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

.share-subtitle {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.share-facebook { background: #1877f2; }
.share-facebook:hover { background: #145dbf; }
.share-twitter { background: #1da1f2; }
.share-twitter:hover { background: #0d8bd9; }
.share-whatsapp { background: #25d366; }
.share-whatsapp:hover { background: #1ebe57; }
.share-email { background: #666; }
.share-email:hover { background: #444; }

.share-link-copy {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 8px;
}

.share-link-copy input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 0.85rem;
    color: #666;
    outline: none;
}

.btn-copy {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 35px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: #f0f0f0;
    color: var(--consultation-green, #0E8040);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .consultation-detail-grid {
        grid-template-columns: 1fr;
    }

    .consultation-sidebar {
        order: -1;
        position: static;
    }

    .consultation-detail-image {
        height: 250px;
    }

    .consultation-title-main {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .consultation-detail-container {
        padding: 20px 15px 40px;
    }

    .consultation-main {
        padding: 25px;
    }

    .consultation-detail-image {
        margin: -25px -25px 20px;
        height: 200px;
    }

    .consultation-title-main {
        font-size: 1.5rem;
    }

    .consultation-detail-meta {
        gap: 10px;
    }

    .question-item {
        padding: 12px;
    }

    .question-help,
    .question-type-info {
        margin-left: 0;
    }

    .stats-counter .count {
        font-size: 2.5rem;
    }
}
