/* CoParently Reisevollmacht-Generator Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.crg-wizard-container {
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 760px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(3, 105, 161, 0.06);
    border: 1px solid #f0f6f8;
    padding: 40px;
    box-sizing: border-box;
}

.crg-wizard-header {
    text-align: center;
    margin-bottom: 25px;
}

.crg-wizard-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    color: #0f172a;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.crg-wizard-subtitle {
    font-size: 15px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* Security Disclaimer */
.crg-security-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 35px;
    text-align: left;
}

.crg-lock-icon {
    font-size: 18px;
    margin-top: 2px;
}

.crg-security-text {
    font-size: 13px;
    color: #0369a1;
    line-height: 1.5;
}

/* Progress Tracker */
.crg-progress-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 30px auto 45px auto;
    max-width: 500px;
}

.crg-progress-bar-line {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    background: #f1f5f9;
    width: 100%;
    z-index: 1;
}

.crg-progress-bar-fill {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    background: #0369a1;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.crg-progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    z-index: 3;
    transition: all 0.3s ease;
}

.crg-progress-step.active {
    border-color: #0369a1;
    color: #0f172a;
    box-shadow: 0 0 12px rgba(3, 105, 161, 0.2);
}

.crg-progress-step.completed {
    background: #0369a1;
    border-color: #0369a1;
    color: #ffffff;
}

/* Step layouts */
.crg-wizard-step {
    display: none;
    animation: crgFadeIn 0.4s ease;
}

.crg-wizard-step.active {
    display: block;
}

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

.crg-step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px 0;
    text-align: left;
}

.crg-step-desc {
    font-size: 13px;
    color: #475569;
    margin: 0 0 25px 0;
    text-align: left;
    line-height: 1.5;
}

/* Form groups */
.crg-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.crg-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.crg-form-input {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.crg-form-input:focus {
    outline: none;
    border-color: #0369a1;
    box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.1), inset 0 1px 2px rgba(0,0,0,0.02);
}

/* Languages Box */
.crg-languages-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
}

.crg-languages-title {
    font-size: 15px;
    font-weight: 700;
    color: #0369a1;
    margin: 0 0 8px 0;
}

.crg-languages-desc {
    font-size: 12px;
    color: #475569;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.crg-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 500px) {
    .crg-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

.crg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
}

.crg-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.crg-checkbox-label:hover:not(.disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.crg-checkbox-label.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Validation Errors */
.crg-error-msg {
    display: none;
    font-size: 12px;
    color: #b91c1c;
    margin-top: 6px;
    font-weight: 500;
}

/* Child Blocks */
.crg-child-block {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    animation: crgFadeIn 0.3s ease;
}

.crg-child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid #cbd5e1;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.crg-child-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0369a1;
}

.crg-child-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.crg-child-remove-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.crg-form-group.has-error .crg-form-input {
    border-color: #fca5a5;
    background: #fef2f2;
}

.crg-form-group.has-error .crg-error-msg {
    display: block;
}

/* Summary and Review Page */
.crg-summary-container {
    text-align: center;
}

.crg-success-icon {
    font-size: 48px;
    color: #0369a1;
    margin-bottom: 15px;
}

.crg-success-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 10px;
}

.crg-lead-desc {
    font-size: 14px;
    color: #475569;
    margin-bottom: 25px;
    line-height: 1.5;
}

.crg-summary-review-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.crg-summary-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}

.crg-summary-row:last-child {
    border-bottom: 0;
}

.crg-summary-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.crg-summary-val {
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 700;
}

/* Buttons */
.crg-wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    gap: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}

.crg-btn {
    border: 0;
    border-radius: 99px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.crg-btn-prev {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.crg-btn-prev:hover {
    background: #f8fafc;
    border-color: #0369a1;
    color: #0f172a;
}

.crg-btn-next {
    background: #0369a1;
    color: #ffffff;
    margin-left: auto;
}

.crg-btn-next:hover {
    background: #0284c7;
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.2);
}

.crg-btn-download {
    background: linear-gradient(135deg, #0369a1, #06b6d4);
    color: #ffffff;
    font-size: 16px;
    padding: 16px 40px;
    box-shadow: 0 4px 15px rgba(3, 105, 161, 0.15);
    margin: 0 auto;
}

.crg-btn-download:hover {
    background: linear-gradient(135deg, #0284c7, #0891b2);
    box-shadow: 0 6px 20px rgba(3, 105, 161, 0.25);
    transform: translateY(-1px);
}
