/**
 * Caption Converter Webflow Bundle Styles
 *
 * CSS variables can be customized via JavaScript:
 * - --cc-primary-color: Primary brand color
 * - --cc-background-color: Card background
 * - --cc-text-color: Default text color
 * - --cc-button-bg-color: Button background
 * - --cc-button-hover-bg-color: Button hover background
 */

/* Container root with CSS custom properties */
#caption-converter-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Default variables (dark theme) */
    --cc-primary-color: #5B24FF;
    --cc-background-color: #120F20;
    --cc-text-color: rgba(255, 255, 255, 0.70);
    --cc-button-bg-color: #5B24FF;
    --cc-button-hover-bg-color: #A04DFF;
    --cc-border-radius: 4px;
    --cc-error-color: #EE5A6F;
    --cc-success-color: #22c55e;
}

/* Base box sizing */
#caption-converter-container *,
#caption-converter-container *::before,
#caption-converter-container *::after {
    box-sizing: border-box;
}

/* ============================================
   WIZARD STATE STYLES
   ============================================ */

.caption-converter-wizard {
    background: var(--cc-background-color);
    border: 1px solid var(--cc-primary-color);
    border-radius: var(--cc-border-radius);
    padding: 32px 24px;
    min-height: 400px;
}

@media (min-width: 768px) {
    .caption-converter-wizard {
        padding: 32px 40px 40px;
    }
}

/* Steps Bar - circles with numbers + labels, connecting line */
.caption-converter-wizard .steps-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    padding: 0 8px;
}

/* Connecting line behind circles */
.caption-converter-wizard .steps-bar::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 9%;
    right: 9%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.caption-converter-wizard .steps-bar .step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    padding: 0;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

/* Step number circle - 30px with number inside (solid bg so line doesn't bleed through) */
.caption-converter-wizard .steps-bar .step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3a3645;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    position: relative;
    z-index: 1;
}

/* Step label below circle - Inter Semi Bold 16px */
.caption-converter-wizard .steps-bar .step-label {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.4);
}

/* Active step - purple circle, accent purple label */
.caption-converter-wizard .steps-bar .step.active .step-circle {
    background: var(--cc-primary-color);
}

.caption-converter-wizard .steps-bar .step.active .step-label {
    color: #A04DFF;
}

/* Wizard Content Grid */
.caption-converter-wizard .wizard-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .caption-converter-wizard .wizard-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }
}

/* Content Columns */
.caption-converter-wizard .content-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Column 3 centers content per Figma */
.caption-converter-wizard .content-column:nth-child(3) {
    align-items: center;
    text-align: center;
}

.caption-converter-wizard .content-column.inactive {
    opacity: 0.4;
    pointer-events: none;
}

/* Mobile responsive - stack columns */
@media (max-width: 767px) {
    .caption-converter-wizard {
        padding: 24px 16px;
    }

    .caption-converter-wizard .steps-bar {
        margin-bottom: 24px;
    }

    .caption-converter-wizard .steps-bar .step-label {
        font-size: 12px;
        line-height: 16px;
    }

    .caption-converter-wizard .steps-bar::before {
        left: 15%;
        right: 15%;
    }

    .caption-converter-wizard .content-column {
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .caption-converter-wizard .content-column:first-child {
        border-top: none;
    }
}

/* File List */
.caption-converter-wizard .file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.caption-converter-wizard .file-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--cc-border-radius);
    color: var(--cc-text-color);
}

.caption-converter-wizard .file-container.srt-error {
    background: rgba(238, 90, 111, 0.15);
    border: 1px solid var(--cc-error-color);
}

.caption-converter-wizard .file-container.srt-error .text {
    color: var(--cc-error-color);
}

.caption-converter-wizard .file-container .text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.caption-converter-wizard .remove-file-button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    margin-left: 8px;
    transition: color 0.2s ease;
}

.caption-converter-wizard .remove-file-button:hover {
    color: var(--cc-error-color);
}

/* Buttons - matches Figma: Inter Semi Bold 14px, 4px radius, 32px height */
.caption-converter-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--cc-button-bg-color);
    color: white;
    border: none;
    border-radius: var(--cc-border-radius);
    padding: 14px 16px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: normal;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(91, 36, 255, 0.3);
    align-self: flex-start;
}

.caption-converter-button.select {
    min-height: 32px;
}

.caption-converter-button.convert {
    align-self: center;
    padding: 14px 24px;
    min-height: 32px;
}

.caption-converter-button:hover:not(:disabled) {
    background: var(--cc-button-hover-bg-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 36, 255, 0.4);
}

.caption-converter-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(91, 36, 255, 0.3);
}

.caption-converter-button:disabled {
    background: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
}

.caption-converter-button .text {
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
}

.caption-converter-button .subtext {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 4px;
}

/* Select hint text below Select .srt Files button */
.caption-converter-wizard .select-hint {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* Export Types List - matches Figma: Inter Regular 12px */
.caption-converter-wizard .export-types-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.caption-converter-wizard .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    padding: 4px;
    border-radius: var(--cc-border-radius);
    transition: background-color 0.2s ease;
}

.caption-converter-wizard .checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

.caption-converter-wizard .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--cc-primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

/* Checked format highlighted in accent purple (matches Figma) */
.caption-converter-wizard .checkbox-label:has(input:checked) {
    color: #A04DFF;
}

/* Error Messages */
.caption-converter-wizard .error-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.caption-converter-wizard .error-message-container {
    padding: 12px;
    background: rgba(238, 90, 111, 0.15);
    border-radius: var(--cc-border-radius);
    border: 1px solid var(--cc-error-color);
}

.caption-converter-wizard .error-message {
    color: var(--cc-error-color);
    font-size: 13px;
}

/* Email Message - matches Figma: Inter Regular 12px, centered */
.caption-converter-wizard .email-message {
    color: rgba(255, 255, 255, 0.4);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
}

/* Email Input - matches Figma: 32px height, 168px wide, centered */
.caption-converter-wizard .email-input {
    width: 100%;
    max-width: 168px;
    height: 32px;
    padding: 7px 11px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--cc-border-radius);
    background: var(--cc-background-color);
    color: white;
    outline: none;
    transition: border-color 0.2s ease;
    align-self: center;
    text-align: center;
}

.caption-converter-wizard .email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.caption-converter-wizard .email-input:focus {
    border-color: var(--cc-primary-color);
}

.caption-converter-wizard .email-input:disabled {
    opacity: 0.5;
}

/* Privacy Message - matches Figma: Inter Regular 10px, 15px line-height */
.caption-converter-wizard .privacy-message {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 15px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    max-width: 168px;
    align-self: center;
    margin-top: 8px;
}

.caption-converter-wizard .privacy-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: underline;
}

.caption-converter-wizard .privacy-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   CONVERTING STATE (OVERLAY)
   ============================================ */

.caption-converter-overlay {
    background: var(--cc-background-color);
    border: 1px solid var(--cc-primary-color);
    border-radius: var(--cc-border-radius);
    padding: 48px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caption-converter-overlay .overlay-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.caption-converter-overlay .overlay-header {
    margin-bottom: 32px;
}

.caption-converter-overlay .overlay-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.caption-converter-overlay .progress-bars {
    width: 100%;
}

.caption-converter-overlay .progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.caption-converter-overlay .progress.white {
    background: rgba(255, 255, 255, 0.2);
}

.caption-converter-overlay .progress.green {
    background: var(--cc-success-color);
    height: 100%;
    width: 0;
}

.caption-converter-overlay .progress.green.animated {
    animation: progress-fill 2s ease-in-out forwards;
}

@keyframes progress-fill {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

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

.caption-converter-success {
    background: var(--cc-background-color);
    border: 1px solid var(--cc-primary-color);
    border-radius: var(--cc-border-radius);
    padding: 48px 24px;
    min-height: 400px;
}

@media (min-width: 768px) {
    .caption-converter-success {
        padding: 48px 40px;
    }
}

.caption-converter-success .confirmation-page {
    text-align: center;
    margin-bottom: 48px;
}

.caption-converter-success .confirmation-message {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.caption-converter-success .final-file-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.caption-converter-success .final-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: var(--cc-border-radius);
    border: 1px solid var(--cc-success-color);
}

.caption-converter-success .file-checkmark {
    color: var(--cc-success-color);
    font-size: 16px;
}

.caption-converter-success .file-name {
    color: white;
    font-size: 14px;
}

.caption-converter-success .thank-you-message {
    color: var(--cc-text-color);
    font-size: 14px;
    margin-bottom: 24px;
}

.caption-converter-success .email-highlight {
    color: white;
    font-weight: 600;
}

.caption-converter-success .convert-again {
    margin: 0 auto;
    min-width: 200px;
}

/* Confirmation Container (Upsell) */
.caption-converter-success .confirmation-container {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--cc-border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.caption-converter-success .opening-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: block;
    margin-bottom: 24px;
}

.caption-converter-success .service-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.caption-converter-success .service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: var(--cc-button-bg-color);
    color: white;
    text-decoration: none;
    border-radius: var(--cc-border-radius);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(91, 36, 255, 0.3);
}

.caption-converter-success .service-link:hover {
    background: var(--cc-button-hover-bg-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 36, 255, 0.4);
}

/* ============================================
   LIGHT MODE OVERRIDES
   ============================================ */

#caption-converter-container.light-mode {
    --cc-background-color: #ffffff;
    --cc-text-color: #333333;
}

#caption-converter-container.light-mode .caption-converter-wizard,
#caption-converter-container.light-mode .caption-converter-overlay,
#caption-converter-container.light-mode .caption-converter-success {
    border: 1px solid #e5e7eb;
}

#caption-converter-container.light-mode .steps-bar .step {
    color: #6b7280;
    background: #f3f4f6;
}

#caption-converter-container.light-mode .file-container {
    background: #f3f4f6;
    color: #333;
}

#caption-converter-container.light-mode .checkbox-label {
    color: #333;
}

#caption-converter-container.light-mode .checkbox-label:hover {
    background: #f3f4f6;
}

#caption-converter-container.light-mode .email-input {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #333;
}

#caption-converter-container.light-mode .email-input::placeholder {
    color: #9ca3af;
}

#caption-converter-container.light-mode .privacy-message {
    color: #6b7280;
}

#caption-converter-container.light-mode .privacy-link {
    color: #5B24FF;
}

#caption-converter-container.light-mode .email-highlight {
    color: #5B24FF;
}

#caption-converter-container.light-mode .confirmation-message,
#caption-converter-container.light-mode .overlay-text,
#caption-converter-container.light-mode .opening-text {
    color: #111827;
}

#caption-converter-container.light-mode .file-name {
    color: #333;
}

#caption-converter-container.light-mode .confirmation-container {
    background: #f9fafb;
    border-color: #e5e7eb;
}

#caption-converter-container.light-mode .progress.white {
    background: #e5e7eb;
}

#caption-converter-container.light-mode .remove-file-button {
    color: #6b7280;
}


/*# sourceMappingURL=caption-converter-webflow.css.map*/