/**
 * Guidance Pages Styles
 * For Confirm and Complete pages
 */

/* ===================================
   Page Confirm & Complete - Common
   =================================== */

body.page-template-page-guidance-confirm,
body.page-template-page-guidance-complete {
    overflow-x: hidden;
}

/* Step header section */
.p-page-hero {
    padding-top: 100px !important;
    margin-bottom: 40px !important;
}

/* Ensure footer is visible */
body.page-template-page-guidance-confirm .l-site-footer,
body.page-template-page-guidance-confirm footer,
body.page-template-page-guidance-confirm .global-footer,
body.page-template-page-guidance-confirm #footer,
body.page-template-page-guidance-complete .l-site-footer,
body.page-template-page-guidance-complete footer {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
    opacity: 1 !important;
}

/* Make sure main content doesn't overflow and hide footer */
body.page-template-page-guidance-confirm main,
body.page-template-page-guidance-confirm .l-main {
    overflow: visible !important;
    position: relative !important;
}

/* Debug: Add clear separation before footer */
body.page-template-page-guidance-confirm .p-guidance-confirm::after {
    content: '';
    display: block;
    clear: both;
    height: 1px;
}

/* Force body to show all content */
body.page-template-page-guidance-confirm {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 100vh !important;
}

/* ===================================
   Page Confirm Specific
   =================================== */

.p-guidance-confirm {
    padding-top: 20px !important;
    padding-bottom: 100px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
    min-height: auto !important;
}

.p-guidance-confirm .l-container {
    overflow: visible !important;
    position: relative !important;
    margin-bottom: 0 !important;
}

.confirm-intro {
    margin-bottom: 30px;
    margin-top: 0;
    padding-top: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.c-table-bordered {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.c-table-bordered th,
.c-table-bordered td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.c-table-bordered th {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 30%;
    min-width: 150px;
}

.c-table-bordered td {
    background-color: #fff;
}

/* Button styles */
.c-btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.c-btn-primary {
    background-color: #4052b5;
    color: white;
}

.c-btn-primary:hover {
    background-color: #3042a5;
}

.c-btn-light {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.c-btn-light:hover {
    background-color: #e9ecef;
}

.c-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
    border-color: #ccc;
}

/* ===================================
   Page Complete Specific
   =================================== */

.p-guidance-complete {
    padding: 0 20px 100px !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
    min-height: auto !important;
}

.complete-content {
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    margin: 30px 0;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.complete-message {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.8;
    color: #333;
    margin: 20px 0 40px;
}

.complete-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.complete-info h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.next-steps {
    margin: 0;
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.complete-actions {
    margin-top: 30px;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .p-page-hero {
        padding-top: 80px !important;
        margin-bottom: 30px !important;
    }
    
    .p-guidance-confirm,
    .p-guidance-complete {
        padding-bottom: 80px !important;
    }
    
    .c-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    .c-table-bordered th {
        width: 40%;
        min-width: 120px;
    }
    
    .complete-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .p-page-hero {
        padding-top: 60px !important;
        margin-bottom: 20px !important;
    }
    
    .p-guidance-confirm,
    .p-guidance-complete {
        padding-bottom: 60px !important;
    }
    
    .c-btn {
        padding: 10px 25px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .l-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .c-btn-block {
        width: 100%;
        max-width: 100%;
    }
    
    .c-table-bordered {
        font-size: 14px;
    }
    
    .c-table-bordered th,
    .c-table-bordered td {
        padding: 10px;
    }
    
    .c-table-bordered th {
        display: block;
        width: 100%;
        border-bottom: none;
    }
    
    .c-table-bordered td {
        display: block;
        width: 100%;
        border-top: none;
    }
    
    .c-table-bordered tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }
    
    .confirm-intro {
        font-size: 14px;
    }
    
    .complete-message {
        font-size: 18px;
    }
    
    .complete-info {
        padding: 15px;
    }
    
    .complete-info h2 {
        font-size: 18px;
    }
}

/* ===================================
   Error Message Box (Confirmation Page)
   =================================== */

.confirm-error-box {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease-out;
}

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

.confirm-error-box .error-icon {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1;
}

.confirm-error-box .error-title {
    color: #c53030;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.confirm-error-box .error-message {
    color: #2d3748;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    white-space: pre-line;
}

.confirm-error-box .error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.confirm-error-box .error-actions .c-btn {
    min-width: 200px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.confirm-error-box .error-actions .c-btn-primary {
    background-color: #3182ce;
    border-color: #3182ce;
}

.confirm-error-box .error-actions .c-btn-primary:hover {
    background-color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(49, 130, 206, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .confirm-error-box {
        padding: 30px 20px;
    }
    
    .confirm-error-box .error-icon {
        font-size: 48px;
    }
    
    .confirm-error-box .error-title {
        font-size: 20px;
    }
    
    .confirm-error-box .error-message {
        font-size: 15px;
    }
    
    .confirm-error-box .error-actions {
        flex-direction: column;
    }
    
    .confirm-error-box .error-actions .c-btn {
        width: 100%;
        min-width: auto;
    }
}

