/* Project Flow Interactive Interface Styles */
/* Built for AB House Projects - Wappler Framework Compatible */

/* =============================================================================
   PROJECT FLOW SECTION
   ============================================================================= */

.project-flow-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--body-bg) 0%, var(--dark-color) 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.project-flow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15px 15px, rgba(223, 105, 26, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 45px 45px, rgba(253, 126, 20, 0.06) 1px, transparent 1px),
        linear-gradient(45deg, transparent 24px, rgba(223, 105, 26, 0.04) 25px, rgba(223, 105, 26, 0.04) 26px, transparent 27px);
    background-size: 30px 30px, 60px 60px, 50px 50px;
    background-position: 0 0, 15px 15px, 0 0;
    z-index: 1;
}

.project-flow-section .container {
    position: relative;
    z-index: 2;
}

/* =============================================================================
   PROGRESS INDICATOR
   ============================================================================= */

.progress-container {
    margin-bottom: 4rem;
    background: rgba(var(--card-bg-rgb), 0.9);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--border-color-rgb), 0.2);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(var(--border-color-rgb), 0.3);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.4);
}

.progress-step.completed .step-circle {
    background: var(--success-color);
    color: white;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--primary-color);
}

.progress-bar {
    height: 4px;
    background: rgba(var(--border-color-rgb), 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 2px;
}

/* =============================================================================
   FLOW STEPS
   ============================================================================= */

.flow-content {
    position: relative;
}

.flow-step {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.flow-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0.01;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 3rem;
}

.step-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.step-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =============================================================================
   PROJECT TYPE CARDS
   ============================================================================= */

.project-type-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
}

.project-type-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.project-type-card:hover::before {
    transform: scale(1);
}

.project-type-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.2);
}

.project-type-card.selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.project-type-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.project-type-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.feature-tag {
    background: rgba(var(--primary-color-rgb), 0.2);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
}

/* =============================================================================
   QUESTIONS INTERFACE
   ============================================================================= */

.question-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.question-card.completed {
    border-color: var(--success-color);
    background: rgba(var(--success-color), 0.1);
}

.question-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.question-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.question-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.question-option {
    background: rgba(var(--card-bg-rgb), 0.5);
    border: 2px solid rgba(var(--border-color-rgb), 0.3);
    border-radius: 10px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.question-option:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
}

.question-option.selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.2);
    color: var(--primary-color);
}

.question-option-text {
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
}

.question-option.selected .question-option-text {
    color: var(--primary-color);
}

/* =============================================================================
   PORTFOLIO GRID
   ============================================================================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.2);
}

.portfolio-item.selected {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.3);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-image i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tag {
    background: rgba(var(--primary-color-rgb), 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =============================================================================
   PROJECT DESCRIPTION STEP
   ============================================================================= */

.description-form-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(var(--border-color-rgb), 0.2);
}

.form-label {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.form-help-text {
    margin-top: 0.5rem;
}

.character-counter {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.character-counter.warning {
    color: var(--accent-color);
}

.character-counter.danger {
    color: #dc3545;
}

.min-chars-indicator {
    color: #dc3545;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.min-chars-indicator.met {
    opacity: 0;
}

.priority-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.priority-option {
    background: rgba(var(--card-bg-rgb), 0.5);
    border: 2px solid rgba(var(--border-color-rgb), 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.priority-option:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
}

.priority-option.selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.2);
    color: var(--primary-color);
}

.priority-option i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.priority-option span {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

.priority-option.selected span {
    color: var(--primary-color);
}

/* Validation states */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--success-color);
}

/* =============================================================================
   PORTFOLIO GRID UPDATES
   ============================================================================= */

.portfolio-item.other-option {
    border: 2px dashed rgba(var(--primary-color-rgb), 0.4);
    background: rgba(var(--primary-color-rgb), 0.05);
}

.portfolio-item.other-option:hover {
    border-style: solid;
    background: rgba(var(--primary-color-rgb), 0.1);
}

.portfolio-item.other-option .portfolio-image {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.6), rgba(var(--secondary-color-rgb), 0.6));
}

/* =============================================================================
   VALIDATION MESSAGES
   ============================================================================= */

.validation-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #dc3545;
    display: none;
}

.validation-message.show {
    display: block;
    animation: slideInDown 0.3s ease;
}

.validation-message i {
    margin-right: 0.5rem;
}

@keyframes slideInDown {
    from {
        opacity: 0.01;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================================================
   STEP COMPLETION INDICATORS
   ============================================================================= */

.step-completion-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-completion-badge.show {
    opacity: 1;
}

/* =============================================================================
   IMAGE UPLOAD SECTION
   ============================================================================= */

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(var(--border-color-rgb), 0.3);
    background: var(--card-bg);
}

.image-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.image-preview-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), transparent);
}

.image-preview-overlay .remove-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    padding: 0;
    border: none;
}

.image-preview-info {
    padding: 0.5rem;
    background: rgba(var(--card-bg-rgb), 0.9);
    text-align: center;
}

.image-preview-info small {
    font-size: 0.7rem;
    color: var(--text-muted);
    word-break: break-word;
}

/* Custom file input styling */
.form-control[type="file"] {
    padding: 0.75rem;
    border: 2px dashed rgba(var(--primary-color-rgb), 0.3);
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control[type="file"]:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
}

.form-control[type="file"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    background: rgba(var(--primary-color-rgb), 0.1);
}

/* Checkbox styling */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.form-check-label {
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
}

/* =============================================================================
   RESPONSIVE UPDATES FOR IMAGE UPLOAD
   ============================================================================= */

@media (max-width: 768px) {
    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .image-preview-item img {
        height: 100px;
    }
    
    .image-preview-info {
        padding: 0.4rem;
    }
    
    .image-preview-info small {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .image-preview-item img {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .priority-options {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }
    
    .priority-option {
        padding: 1rem 0.8rem;
        gap: 0.6rem;
    }
    
    .priority-option i {
        font-size: 1.2rem;
    }
    
    .priority-option span {
        font-size: 0.85rem;
    }
    
    .description-form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .priority-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .description-form-container {
        padding: 1.5rem 1rem;
    }
    
    .form-label {
        font-size: 1rem;
    }
}

.contact-form-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(var(--border-color-rgb), 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-control {
    background: rgba(var(--body-bg), 0.5);
    border: 2px solid rgba(var(--border-color-rgb), 0.3);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(var(--body-bg), 0.8);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* =============================================================================
   SUMMARY SECTION
   ============================================================================= */

.summary-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(var(--border-color-rgb), 0.2);
}

.summary-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.2);
}

.summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-section h4 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.summary-section h4 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.summary-content {
    background: rgba(var(--body-bg), 0.3);
    border-radius: 10px;
    padding: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.summary-value {
    color: var(--text-light);
    font-weight: 600;
    text-align: right;
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */

.step-navigation {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(var(--border-color-rgb), 0.2);
}

.step-navigation .btn {
    min-width: 150px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================================================
   SUCCESS STATE
   ============================================================================= */

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    animation: successPulse 2s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0.01; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .step-title {
        font-size: 2.2rem;
    }
    
    .step-subtitle {
        font-size: 1.1rem;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .step-circle {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .step-label {
        margin-top: 0;
    }
    
    .project-type-card {
        margin-bottom: 1.5rem;
        min-height: 280px;
    }
    
    .question-options {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .step-navigation .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .step-navigation .btn {
        width: 100%;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .progress-container {
        padding: 1.5rem 1rem;
    }
    
    .step-title {
        font-size: 1.8rem;
    }
    
    .step-subtitle {
        font-size: 1rem;
    }
    
    .project-type-card {
        padding: 2rem 1.5rem;
        min-height: 260px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon i {
        font-size: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem 1rem;
    }
    
    .summary-container {
        padding: 2rem 1.5rem;
    }
}

/* =============================================================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================================================= */

/* High contrast mode adjustments */
.high-contrast .project-type-card,
.high-contrast .question-card,
.high-contrast .portfolio-item,
.high-contrast .contact-form-container,
.high-contrast .summary-container {
    background: rgba(var(--card-bg-rgb), 0.9) !important;
    border: 2px solid rgba(var(--border-color-rgb), 0.6) !important;
}

.high-contrast .form-control {
    background: rgba(var(--body-bg), 0.9) !important;
    border: 2px solid rgba(var(--border-color-rgb), 0.6) !important;
}

/* Focus indicators */
.project-type-card:focus,
.question-option:focus,
.portfolio-item:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .project-type-card,
    .portfolio-item,
    .question-option,
    .step-circle,
    .progress-fill {
        transition: none !important;
        animation: none !important;
    }
}

/* =============================================================================
   IMAGE SUMMARY SECTION
   ============================================================================= */

.uploaded-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.summary-image-item {
    background: rgba(var(--card-bg-rgb), 0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(var(--border-color-rgb), 0.2);
}

.summary-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.summary-image-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 0.75rem;
    text-align: center;
}

.image-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-size {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Hidden form data container */
.hidden-form-data {
    display: none;
}

/* Validation feedback summary */
.validation-feedback-summary {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.validation-feedback-summary.text-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: var(--success-color);
}

.validation-feedback-summary.text-muted {
    background: rgba(var(--text-muted-rgb), 0.1);
    border: 1px solid rgba(var(--border-color-rgb), 0.3);
    color: var(--text-muted);
}

/* Submit button states */
.btn-secondary {
    background: rgba(var(--border-color-rgb), 0.3) !important;
    border-color: rgba(var(--border-color-rgb), 0.5) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(var(--border-color-rgb), 0.3) !important;
    border-color: rgba(var(--border-color-rgb), 0.5) !important;
    color: var(--text-muted) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Mobile responsive adjustments for image grid */
@media (max-width: 768px) {
    .uploaded-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .summary-image-preview {
        height: 100px;
    }
    
    .image-info {
        padding: 0.5rem;
    }
}

/* =============================================================================
   SUCCESS PAGE ENHANCEMENTS
   ============================================================================= */

#success {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--body-bg) 0%, var(--dark-color) 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

#success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15px 15px, rgba(223, 105, 26, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 45px 45px, rgba(253, 126, 20, 0.06) 1px, transparent 1px),
        linear-gradient(45deg, transparent 24px, rgba(223, 105, 26, 0.04) 25px, rgba(223, 105, 26, 0.04) 26px, transparent 27px);
    background-size: 30px 30px, 60px 60px, 50px 50px;
    background-position: 0 0, 15px 15px, 0 0;
    z-index: 1;
}

#success .container {
    position: relative;
    z-index: 2;
}

.success-container {
    background: rgba(var(--card-bg-rgb), 0.95);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(var(--border-color-rgb), 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.success-icon-wrapper {
    position: relative;
    display: inline-block;
}

.success-icon {
    font-size: 6rem;
    color: var(--success-color);
    position: relative;
    z-index: 3;
    animation: successIconBounce 1.2s ease-out;
}

.success-ring,
.success-ring-delayed {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(var(--success-color-rgb), 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: successRingExpand 2s ease-out;
}

.success-ring-delayed {
    animation-delay: 0.3s;
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

@keyframes successIconBounce {
    0% { transform: scale(0) rotate(-180deg); opacity: 0.01; }
    50% { transform: scale(1.2) rotate(-10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes successRingExpand {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
}

.success-message {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.next-steps-container {
    background: rgba(var(--body-bg-rgb), 0.4);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid rgba(var(--border-color-rgb), 0.2);
}

.next-steps-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(var(--card-bg-rgb), 0.6);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-step:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.2);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon i {
    font-size: 1.2rem;
    color: white;
}

.step-content h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.contact-info-box {
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 2px solid rgba(var(--primary-color-rgb), 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.contact-info-box h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-method:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
}

/* Mobile Responsive Adjustments for Success Page */
@media (max-width: 768px) {
    .success-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .success-message {
        font-size: 1.1rem;
    }
    
    .next-steps-container {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .timeline-step {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .timeline-step:hover {
        transform: translateY(-5px);
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .success-icon {
        font-size: 4.5rem;
    }
    
    .success-title {
        font-size: 1.8rem;
    }
    
    .success-message {
        font-size: 1rem;
    }
    
    .success-container {
        padding: 1.5rem 1rem;
    }
    
    .next-steps-container {
        padding: 1.5rem 1rem;
    }
    
    .contact-info-box {
        padding: 1.5rem 1rem;
    }
}
