/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* BODY */

body {
    background-image: url("imagefile/zoom-background-office-with-boardroom-s0z6egef74nlocft.jpg");
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
}

.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 15px 50px;
    min-height: calc(100vh - 80px);
}

/* MAIN CONTAINER */

.container {
    width: 100%;
    max-width: 900px;
    background: #eff6ff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #93c5fd;
}

/* TITLE */

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #0f172a;
    font-size: 32px;
}

/* STEPS */

.steps {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dbeafe;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
}

/* CURRENT ACTIVE STEP */

.step.active {
    background: #38bdf8;
    color: white;
}

/* COMPLETED STEP */

.step.completed {
    background: #22c55e;
    color: white;
}

/* FORM SECTIONS */

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

/* SUB TITLES */

h2 {
    margin-bottom: 25px;
    color: #1e293b;
    font-size: 26px;
}

/* INPUT GROUP */

.input-group {
    margin-bottom: 22px;
}

/* LABELS */

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #334155;
    font-size: 15px;
}

/* REQUIRED STAR */

.required {
    color: #ef4444 !important;
}

/* INPUTS */

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #93c5fd;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: white;
    transition: 0.3s;
}

/* INPUT FOCUS */

input:focus,
select:focus,
textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 5px rgba(2, 132, 199, 0.3);
}

/* TEXTAREA */

textarea {
    resize: vertical;
    min-height: 120px;
}

/* RADIO GROUP */

.radio-group {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

/* FILE INPUT */

input[type="file"] {
    padding: 20px;
    border: 2px dashed #60a5fa;
    background: #f0f9ff;
    cursor: pointer;
    border-radius: 12px;
}

/* BUTTON GROUP */

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* BUTTONS */

button {
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}

/* NEXT BUTTON */

.next-btn {
    background: #2563eb;
    color: white;
}

.next-btn:hover {
    background: #1d4ed8;
}

/* PREVIOUS BUTTON */

.prev-btn {
    background: #60a5fa;
    color: white;
}

.prev-btn:hover {
    background: #3b82f6;
}

/* SUBMIT BUTTON */

.submit-btn {
    background: #0284c7;
    color: white;
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    font-size: 18px;
}

.submit-btn:hover {
    background: #0369a1;
}

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* REVIEW BOX */

.review-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* MOBILE RESPONSIVE */

@media(max-width:768px) {

    body {
        padding: 15px;
    }

    .container {
        padding: 20px;
    }

    .steps {
        gap: 10px;
    }

    .step {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    button {
        width: 100%;
    }

    .button-group {
        flex-direction: column;
        gap: 15px;
    }

}

/* --- PHASE 7 PROFESSIONAL SUBMISSION FLOW STYLES --- */

/* PREVIEW CARDS */
.preview-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
}

.preview-info span {
    display: block;
    color: #1e293b !important;
}

.preview-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.preview-size {
    font-size: 0.8rem;
    opacity: 0.8;
}

.preview-status {
    margin-left: auto;
    color: #10b981 !important;
    font-weight: 600;
    font-size: 0.85rem;
}

/* PROFESSIONAL REVIEW CARDS */
.review-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.review-section-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.edit-section-btn {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-section-btn:hover {
    background: #2563eb;
    color: white;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-item label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
}

.review-item span {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.4;
}

/* CAPTCHA & FORM TEXT VISIBILITY */
.form-section p,
.form-section label,
.upload-box label {
    color: #1e293b !important;
}

/* ══════════════════════════════════════════════
   SUBMISSION PROGRESS OVERLAY
══════════════════════════════════════════════ */

#submitProgressOverlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 40, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 20px;
}

.progress-modal {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 44px 36px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-align: center;
    animation: progressModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes progressModalIn {
    from {
        transform: scale(0.85) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* BRAND */
.progress-brand {
    font-size: 1.35rem;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.progress-brand-bold {
    font-weight: 800;
    color: #0f172a;
}

.progress-brand-light {
    font-weight: 400;
    color: #64748b;
}

/* ICON AREA */
.progress-icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
}

.progress-spinner {
    position: absolute;
    inset: 0;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spinRing 0.9s linear infinite;
}

@keyframes spinRing {
    to {
        transform: rotate(360deg);
    }
}

.progress-send-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #2563eb;
    animation: iconPulse 1.6s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.88);
    }
}

/* LABEL */
.progress-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    min-height: 1.4em;
    transition: all 0.3s ease;
}

/* PROGRESS BAR */
.progress-bar-track {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9);
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer on bar */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    animation: barShimmer 1.4s linear infinite;
}

@keyframes barShimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(200%);
    }
}

/* PERCENTAGE */
.progress-pct {
    font-size: 1.45rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 22px;
    font-variant-numeric: tabular-nums;
    transition: all 0.4s ease;
}

/* STEPS LIST */
.progress-steps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
}

.pstep {
    font-size: 0.84rem;
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pstep i {
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* ACTIVE STEP */
.pstep.pstep-active {
    color: #2563eb;
    font-weight: 700;
}

.pstep.pstep-active i {
    color: #2563eb;
    animation: stepIconPulse 0.8s ease-in-out infinite alternate;
}

@keyframes stepIconPulse {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* DONE STEP */
.pstep.pstep-done {
    color: #10b981;
    font-weight: 600;
}

.pstep.pstep-done i {
    color: #10b981;
}

/* SUCCESS MODAL REFINEMENT */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000000;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: 24px;
    max-width: 550px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-icon {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 24px;
}

.success-icon i {
    animation: checkBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkBounce {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    70% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 16px;
    font-size: 1.75rem;
}

.modal-content p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.home-btn,
.another-btn,
.download-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.home-btn {
    background: #0f172a;
    color: white;
}

.another-btn {
    background: #f1f5f9;
    color: #475569;
}

.download-btn {
    background: #eff6ff;
    color: #2563eb;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.home-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.another-btn:hover {
    background: #e2e8f0;
}

.download-btn:hover {
    background: #dbeafe;
}

/* MOBILE PROGRESS MODAL */
@media (max-width: 480px) {
    .progress-modal {
        padding: 30px 24px 28px;
    }

    .progress-pct {
        font-size: 1.2rem;
    }

    .progress-steps-list {
        padding: 12px 14px;
    }

    .pstep {
        font-size: 0.8rem;
    }
}