/* CloudSign Workflow Styles */

.workflow-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.progress-line {
    position: absolute;
    height: 3px;
    background-color: var(--border-color);
    top: 20px;
    left: 50px;
    right: 50px;
    z-index: 0;
}

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

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

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

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* Workflow Step */
.workflow-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

.step-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.step-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 83, 148, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background-color: rgba(11, 83, 148, 0.02);
}

.upload-area.dragover {
    border-color: var(--primary-blue);
    background-color: rgba(11, 83, 148, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-area h3 {
    margin: 0.5rem 0;
    color: var(--dark-gray);
}

.upload-area p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 1rem;
}

/* File Info */
.file-info {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Signers Form */
.signers-form {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.signers-list {
    margin-bottom: 2rem;
}

.signer-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signer-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--dark-gray);
}

.signer-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.signer-order {
    background-color: var(--primary-blue);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.remove-signer {
    background: none;
    border: none;
    color: var(--error-red);
    cursor: pointer;
    font-size: 1.25rem;
}

/* Fields Container */
.fields-container {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.document-preview {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
}

.fields-toolbar {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.fields-toolbar h3 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--dark-gray);
}

.field-button {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.field-button:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.field-button span {
    margin-right: 0.5rem;
}

/* Review Section */
.review-section {
    margin-bottom: 2rem;
}

.review-card {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.review-card h3 {
    margin-top: 0;
    color: var(--dark-gray);
    font-size: 1rem;
}

.review-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

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

.review-item .label {
    font-weight: 600;
    color: var(--dark-gray);
    min-width: 80px;
}

.review-item .value {
    color: var(--text-secondary);
}

/* Step Actions */
.step-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.step-actions .btn-secondary {
    background-color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert.error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: var(--error-red);
}

.alert.success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--success-green);
}

.alert.info {
    background-color: rgba(11, 83, 148, 0.1);
    border: 1px solid rgba(11, 83, 148, 0.3);
    color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .workflow-container {
        padding: 1rem;
    }

    .progress-bar {
        flex-wrap: wrap;
    }

    .progress-line {
        display: none;
    }

    .progress-step {
        flex: 0 0 25%;
    }

    .step-content {
        padding: 1.5rem;
    }

    .step-content h1 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .fields-container {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column-reverse;
    }

    .step-actions .btn-primary,
    .step-actions .btn-secondary {
        width: 100%;
    }
}
