/* Registration Flow Popup Styles */

/* Button to Open Flow */
.btn-registration-flow {
    background: linear-gradient(135deg, #24093F, #FF1949, #ff6b35);
    background-size: 200% 200%;
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(36, 9, 63, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
}

.btn-registration-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-registration-flow:hover::before {
    left: 100%;
}

.btn-registration-flow:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(36, 9, 63, 0.4);
}

.btn-registration-flow i:last-child {
    transition: transform 0.3s ease;
}

.btn-registration-flow:hover i:last-child {
    transform: translateX(5px);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Registration Flow Popup Overlay */
.registration-flow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.registration-flow-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Registration Flow Container */
.registration-flow-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 25, 73, 0.2);
}

.registration-flow-overlay.active .registration-flow-container {
    transform: scale(1) translateY(0);
}

/* Custom Scrollbar */
.registration-flow-container::-webkit-scrollbar {
    width: 8px;
}

.registration-flow-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.registration-flow-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF1949, #ff6b35);
    border-radius: 4px;
}

.registration-flow-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e0143d, #e55a2b);
}

/* Flow Header */
.flow-header {
    background: linear-gradient(135deg, #24093F 0%, #FF1949 50%, #ff6b35 100%);
    background-size: 200% 200%;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 5s ease infinite;
}

.flow-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.flow-header h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.flow-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Close Button */
.flow-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.flow-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
}

/* Flow Content */
.flow-content {
    padding: 40px 30px;
}

/* Flow Step */
.flow-step {
    position: relative;
    margin-bottom: 30px;
    padding-left: 50px;
}

.flow-step::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    bottom: -30px;
    width: 3px;
    background: linear-gradient(180deg, #FF1949, #ff6b35, #24093F);
    z-index: 1;
}

.flow-step:last-child::before {
    display: none;
}

/* Step Number Badge */
.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FF1949, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 25, 73, 0.4);
    z-index: 2;
    border: 3px solid white;
}

/* Step Card */
.step-card {
    background: white;
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #FF1949;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #FF1949, #ff6b35);
    transition: width 0.3s ease;
}

.step-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.step-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.step-title {
    color: #24093F;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.step-title i {
    color: #FF1949;
    font-size: 20px;
}

.step-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 5px 5px 5px 0;
    position: relative;
    z-index: 1;
}

.status-pending {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
}

.status-review {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.status-rejected {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.status-approved {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.status-signed {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
}

.status-accepted {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: white;
}

.status-complete {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.status-active {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
}

/* Action Items */
.action-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 10px;
    margin-top: 10px;
    border-left: 3px solid #ff6b35;
    position: relative;
    z-index: 1;
}

.action-item strong {
    color: #24093F;
    font-weight: 700;
}

/* QR Code Section */
.qr-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 25, 73, 0.05), rgba(255, 107, 53, 0.05));
    border-radius: 15px;
    margin: 15px 0;
    border: 2px dashed #FF1949;
    position: relative;
    z-index: 1;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: white;
    border: 3px solid #FF1949;
    border-radius: 10px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #FF1949;
}

/* QR Code Container and Image */
.qr-code-container {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
    box-sizing: border-box;
}

.qr-code-text {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* PDF Download Links */
.pdf-download-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.pdf-download-link:hover {
    background: #e9ecef;
    border-color: #dc3545;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    color: #24093F;
}

.pdf-download-link:hover .fa-file-pdf {
    transform: scale(1.1);
    color: #c82333;
}

.pdf-download-link:hover .fa-download {
    transform: translateY(-2px);
    color: #dc3545;
}

.pdf-download-link .fa-file-pdf,
.pdf-download-link .fa-download {
    transition: all 0.3s ease;
}

/* Form Link Button */
.form-link-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FF1949, #ff6b35);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 25, 73, 0.3);
    position: relative;
    z-index: 1;
}

.form-link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 25, 73, 0.4);
    background: linear-gradient(135deg, #e0143d, #e55a2b);
}

.form-link-button:hover .fa-arrow-right {
    transform: translateX(5px);
}

.form-link-button .fa-arrow-right {
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 991px) {
    .qr-code-image {
        max-width: 190px;
    }
}

@media (max-width: 768px) {
    .registration-flow-container {
        max-width: 95%;
        border-radius: 20px;
    }
    
    .flow-header {
        padding: 25px 20px;
    }
    
    .flow-header h2 {
        font-size: 22px;
    }
    
    .flow-content {
        padding: 30px 20px;
    }
    
    .flow-step {
        padding-left: 40px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step-card {
        padding: 15px 20px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-description {
        font-size: 13px;
    }
    
    .btn-registration-flow {
        padding: 14px 25px;
        font-size: 14px;
    }
    
    .qr-section {
        padding: 15px;
        margin: 12px 0;
    }
    
    .qr-code-container {
        margin: 15px 0;
    }
    
    .qr-code-image {
        max-width: 180px;
        padding: 8px;
    }
    
    .qr-code-text {
        font-size: 11px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .flow-header h2 {
        font-size: 20px;
    }
    
    .flow-header p {
        font-size: 14px;
    }
    
    .flow-content {
        padding: 25px 15px;
    }
    
    .flow-step {
        padding-left: 35px;
        margin-bottom: 25px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-card {
        padding: 12px 15px;
    }
    
    .step-title {
        font-size: 15px;
        flex-wrap: wrap;
    }
    
    .btn-registration-flow {
        padding: 12px 20px;
        font-size: 13px;
        gap: 8px;
    }
    
    .btn-registration-flow span {
        display: none;
    }
    
    .btn-registration-flow::after {
        content: 'View Flow';
    }
    
    .qr-section {
        padding: 12px;
        margin: 10px 0;
        border-radius: 12px;
    }
    
    .qr-code-container {
        margin: 12px 0;
    }
    
    .qr-code-image {
        max-width: 150px;
        padding: 8px;
        border-width: 1.5px;
    }
    
    .qr-code-text {
        font-size: 10px;
        margin-top: 6px;
        padding: 0 5px;
    }
}

