.rt-v2-form-wrapper {
    font-family: "Source Sans Pro", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}
.rt-v2-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    padding: 0;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    min-height: 75px;
}
.rt-v2-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    z-index: 1;
    top: 0;
}
/* Step 1: Circle right edge at 0px (aligns with content box left border) */
.rt-v2-step:first-child {
    left: -70px; /* 0px (content box left border) - 25px (half circle width) */
}
/* Step 3: Circle left edge at 0px from right (aligns with content box right border) */
.rt-v2-step:last-child {
    right: -50px; /* 0px (content box right border) - 25px (half circle width) */
}
/* Step 2: Centered */
.rt-v2-step:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
}
/* Line segment 1: Between Step 1 and Step 2 */
.rt-v2-progress-steps::before {
    content: "";
    position: absolute;
    top: 25px;
    /* Starts 20px after Step 1 circle's right edge (-25px center + 25px radius + 20px = 20px) */
    left: 20px;
    /* Ends 20px before Step 2 circle's left edge (50% center - 25px radius - 20px) */
    right: calc(50% + 25px + 20px);
    height: 2px;
    background: #E0E0E0;
    z-index: 0;
}
/* Line segment 2: Between Step 2 and Step 3 */
.rt-v2-progress-steps::after {
    content: "";
    position: absolute;
    top: 25px;
    /* Starts 20px after Step 2 circle's right edge (50% center + 25px radius + 20px) */
    left: calc(50% + 25px + 20px);
    /* Ends 20px before Step 3 circle's left edge (-25px from right center - 25px radius - 20px = 20px from right) */
    right: 20px;
    height: 2px;
    background: #E0E0E0;
    z-index: 0;
}
.rt-v2-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    background: white;
    color: #9E9E9E;
    border: 2px solid #E0E0E0;
    transition: all 0.3s ease;
}
.rt-v2-step.active .rt-v2-step-circle {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.rt-v2-step.completed .rt-v2-step-circle {
    background: #E0E0E0;
    color: #9E9E9E;
    border: 2px solid #E0E0E0;
}
.rt-v2-step-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}
.rt-v2-step-content {
    display: none;
}
.rt-v2-step-content.active {
    display: flex !important;
    flex-direction: column !important;
}
.rt-v2-upload-box {
    border: 2px dashed #667EEA;
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    background: white;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.rt-v2-upload-btn {
    background: linear-gradient(180deg, #667EEA 0%, #764BA2 100%) !important;
    background-color: transparent !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 20px 40px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: "Source Sans Pro", sans-serif !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    text-align: center !important;
    white-space: nowrap !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    box-sizing: border-box !important;
}
.rt-v2-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
.rt-v2-upload-btn:active {
    transform: translateY(0);
}
.rt-v2-upload-btn svg {
    width: 20px;
    height: 20px;
}
.rt-v2-tailor-btn svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}
.rt-v2-upload-hint {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}
.rt-v2-input-box {
    border: 2px dashed #667EEA;
    border-radius: 16px;
    padding: 60px 40px;
    background: white;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    position: relative;
}
.rt-v2-input-wrapper {
    position: relative;
    width: 100%;
}
.rt-v2-job-input {
    width: 100%;
    padding: 16px 50px 16px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 16px;
    font-family: "Source Sans Pro", sans-serif;
    transition: border-color 0.3s;
}
.rt-v2-job-input:focus {
    outline: none;
    border-color: #667EEA;
}
.rt-v2-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #9E9E9E;
}
.rt-v2-input-hint {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.rt-v2-tailor-btn {
    background: linear-gradient(180deg, #667EEA 0%, #764BA2 100%) !important;
    background-color: transparent !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: "Source Sans Pro", sans-serif !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    width: auto !important;
    justify-content: center !important;
    margin: 0 auto !important;
    text-align: center !important;
    white-space: nowrap !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    box-sizing: border-box !important;
}
.rt-v2-tailor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
.rt-v2-tailor-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.rt-v2-loading-box {
    border: 2px dashed #667EEA;
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    background: white;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.rt-v2-loading-icon {
    width: 80px;
    height: 80px;
    color: #667EEA;
}
.rt-v2-loading-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.rt-v2-loading-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 500px;
}
.rt-v2-back-btn {
    background: white !important;
    background-color: white !important;
    border: 2px solid #E0E0E0 !important;
    border-radius: 12px !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-self: flex-start !important;
}
.rt-v2-back-btn:hover {
    border-color: #667EEA;
    background: #F5F5F5;
}
.rt-v2-back-btn svg {
    width: 24px;
    height: 24px;
    color: #667EEA;
}
.rt-v2-forward-btn {
    background: white !important;
    background-color: white !important;
    border: 2px solid #E0E0E0 !important;
    border-radius: 12px !important;
    width: 48px !important;
    height: 48px !important;
    display: none !important; /* Hidden by default, shown via JavaScript when step 1 is active and PDF is uploaded */
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-self: flex-end !important;
}
.rt-v2-forward-btn.show {
    display: flex !important; /* Show when .show class is added */
}
.rt-v2-forward-btn:hover {
    border-color: #667EEA;
    background: #F5F5F5;
}
.rt-v2-forward-btn svg {
    width: 24px;
    height: 24px;
    color: #667EEA;
}
.rt-v2-status {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
}
.rt-v2-status.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}
.rt-v2-status.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}
#rt-v2-pdf {
    display: none !important;
}

/* Override theme button styles with higher specificity */
.rt-v2-form-wrapper button.rt-v2-upload-btn,
.rt-v2-form-wrapper button.rt-v2-tailor-btn,
.rt-v2-form-wrapper button.rt-v2-back-btn {
    background-color: transparent !important;
    border: none !important;
    color: inherit !important;
}

/* Ensure buttons maintain their styles even with theme overrides */
#rt-v2-form button.rt-v2-upload-btn,
#rt-v2-form button.rt-v2-tailor-btn,
#rt-v2-form button.rt-v2-back-btn {
    all: unset;
    box-sizing: border-box;
}

#rt-v2-form button.rt-v2-upload-btn {
    background: linear-gradient(180deg, #667EEA 0%, #764BA2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 20px 40px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: "Source Sans Pro", sans-serif !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    text-align: center !important;
    white-space: nowrap !important;
}

#rt-v2-form button.rt-v2-tailor-btn {
    background: linear-gradient(180deg, #667EEA 0%, #764BA2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 20px 40px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: "Source Sans Pro", sans-serif !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    width: auto !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    margin: 0 auto !important;
}
#rt-v2-form button.rt-v2-tailor-btn svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

#rt-v2-form button.rt-v2-back-btn {
    background: white !important;
    border: 2px solid #E0E0E0 !important;
    border-radius: 12px !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
}

