/* OP Forms Public Styles - Typeform-inspired */

.op-form-wrapper {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin: 20px 0;
}

.op-form-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 650px;
    width: 100%;
    padding: 40px;
    min-height: 350px;
    position: relative;
}

/* Progress */
.op-form-progress {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

/* Question */
.op-question {
    animation: slideIn 0.3s ease-out;
}

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

.op-question-label {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.op-question-caption {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Inputs */
.op-question-input {
    margin-bottom: 30px;
}

.op-input {
    width: 100%;
    font-size: 18px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #fff;
}

.op-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.op-input-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Choices (Radio & Checkbox) */
.op-input-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.op-choice-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #333;
}

.op-choice-label:hover {
    background: #f0f1f3;
    border-color: #667eea;
}

.op-choice-label input[type="radio"],
.op-choice-label input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.op-choice-label input[type="radio"]:checked,
.op-choice-label input[type="checkbox"]:checked {
    accent-color: #667eea;
}

.op-choice-label:has(input:checked) {
    background: #f0f1ff;
    border-color: #667eea;
    color: #667eea;
    font-weight: 500;
}

.op-choice-text {
    flex: 1;
}

/* Error */
.op-question-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 14px;
}

/* Navigation */
.op-question-nav {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.op-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.op-btn-primary {
    background: #667eea;
    color: #fff;
}

.op-btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.op-btn-primary:active {
    transform: translateY(0);
}

.op-btn-back {
    background: #f0f0f0;
    color: #666;
}

.op-btn-back:hover {
    background: #e0e0e0;
}

/* Thank You */
.op-form-thankyou {
    text-align: center;
    padding: 40px 20px;
}

.op-thankyou-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.op-thankyou-desc {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.op-btn-cta {
    display: inline-block;
    margin-top: 20px;
}

/* Loading */
.op-form-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

.op-form-loading:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Error */
.op-form-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .op-form-wrapper {
        padding: 20px 10px;
    }

    .op-form-container {
        padding: 30px 20px;
    }

    .op-question-label {
        font-size: 24px;
    }

    .op-question-caption {
        font-size: 14px;
    }

    .op-input {
        font-size: 16px;
        padding: 12px 14px;
    }

    .op-choice-label {
        font-size: 14px;
        padding: 14px 16px;
    }

    .op-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .op-thankyou-title {
        font-size: 26px;
    }

    .op-thankyou-desc {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .op-form-container {
        padding: 25px 15px;
    }

    .op-question-label {
        font-size: 20px;
    }

    .op-question-nav {
        flex-direction: column-reverse;
    }

    .op-btn {
        width: 100%;
    }
}

/* ========================================
   Welcome Screen (v3.0.0)
   ======================================== */

.op-welcome-screen {
    text-align: center;
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
    animation: opFadeIn 0.5s ease-in-out;
}

.op-welcome-logo {
    margin-bottom: 30px;
}

.op-welcome-logo img {
    max-width: 120px;
    height: auto;
    display: inline-block;
}

.op-welcome-headline {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.op-welcome-body {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 40px 0;
    white-space: pre-wrap;
}

.op-btn-start {
    font-size: 16px;
    padding: 14px 40px;
    min-width: 160px;
}

/* Welcome screen animations */
@keyframes opFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive welcome screen */
@media (max-width: 768px) {
    .op-welcome-screen {
        padding: 40px 30px;
    }

    .op-welcome-headline {
        font-size: 26px;
    }

    .op-welcome-body {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .op-welcome-screen {
        padding: 30px 20px;
    }

    .op-welcome-headline {
        font-size: 22px;
    }

    .op-welcome-body {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .op-btn-start {
        width: 100%;
    }
}
