.cumobtin-document {
    width: 100%;
}

.cumobtin-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.cumobtin-step {
    flex: 1;
    position: relative;
    text-align: center;
}

.cumobtin-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 21px;
    left: calc(50% + 26px);
    width: calc(100% - 52px);
    height: 2px;
    background: #d9dee8;
    z-index: 0;
}

.cumobtin-step-number {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    margin: 0 auto 9px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9edf4;
    color: #667085;
    font-size: 15px;
    font-weight: 700;
}

.cumobtin-step-title {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.cumobtin-step.active .cumobtin-step-number {
    background: #2563eb;
    color: #ffffff;
}

.cumobtin-step.active .cumobtin-step-title {
    color: #1e2a4a;
}

.co-generation-success {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin: -12px 0 30px;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    color: #14532d;
    box-shadow: 0 8px 24px rgba(22, 101, 52, 0.08);
}

.co-generation-success[hidden] {
    display: none;
}

.co-generation-success-icon {
    display: flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.co-generation-success strong {
    display: block;
    margin-bottom: 3px;
    color: #166534;
    font-size: 17px;
    line-height: 1.35;
}

.co-generation-success p {
    margin: 0;
    color: #3f6212;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .cumobtin-steps {
        gap: 4px;
    }

    .cumobtin-step-number {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .cumobtin-step:not(:last-child)::after {
        top: 17px;
        left: calc(50% + 21px);
        width: calc(100% - 42px);
    }

    .cumobtin-step-title {
        font-size: 10px;
    }

    .co-generation-success {
        align-items: flex-start;
        margin-top: -8px;
        padding: 16px;
    }

    .co-generation-success-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 19px;
    }
}

/* --------------------------------------------------
   Cards
--------------------------------------------------- */

.co-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 18px;
}

.co-card h3 {
    margin: 0 0 14px;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
}

/* --------------------------------------------------
   Fields
--------------------------------------------------- */

.co-field {
    margin-bottom: 6px;
    min-width: 0;
}

.co-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.co-radio-group {
    display: flex;
    gap: 30px;
}

.co-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* ========================================
   Person Type Selector
======================================== */

.co-person-type{
    display:flex;
    gap:20px;
    margin-top:10px;
}

.co-person-option{
    flex:1;
    cursor:pointer;
}

.co-person-option input{
    display:none;
}

.co-person-option-content{
    display:flex;
    align-items:center;
    gap:16px;

    padding:18px;

    border:2px solid #e5e7eb;
    border-radius:12px;

    transition:.25s;

    background:#fff;
}

.co-person-option:hover .co-person-option-content{
    border-color:#2563eb;
    box-shadow:0 6px 18px rgba(37,99,235,.08);
}

.co-person-option input:checked + .co-person-option-content{
    border-color:#2563eb;
    background:#eff6ff;
}

.co-person-option-icon{
    font-size:26px;
}

.co-person-option strong{
    display:block;
    font-size:16px;
    color:#1e293b;
}

.co-person-option small{
    display:block;
    margin-top:4px;
    color:#64748b;
    font-size:13px;
}

/* ========================================
   Person Type Selector
======================================== */

.co-person-type {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.co-person-option {
    flex: 1;
    cursor: pointer;
}

.co-person-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.co-person-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.co-person-option:hover .co-person-option-content {
    border-color: #93b4f5;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.co-person-option input:checked + .co-person-option-content {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.co-person-option-icon {
    flex: 0 0 auto;
    font-size: 26px;
    line-height: 1;
}

.co-person-option strong {
    display: block;
    color: #1e293b;
    font-size: 16px;
    line-height: 1.3;
}

.co-person-option small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .co-person-type {
        flex-direction: column;
        gap: 12px;
    }
}

.co-card-description {
    margin: -6px 0 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================
   Inputs
======================================== */

.co-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:end;
    column-gap: 18px;
    row-gap: 4px;
    margin-top: 6px;
	margin-bottom: 6px;
}

.co-input{
    width:100%;
    box-sizing:border-box;
    min-width:0;
    height: 44px;

    padding: 10px 14px;

    border:1px solid #dbe3ef;
    border-radius:10px;

    font-size:15px;

    transition:.2s;

    background:#fff;
}

.co-input:hover{
    border-color:#b7c7e8;
}

.co-input:focus{
    outline:none;
    border-color:#2563eb;

    box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.co-field-description {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.co-input.error {
    border-color: #dc2626;
    background: #fef2f2;
}

.co-error {
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
}

.co-required{
    color:#ef4444;
    margin-left:4px;
}

/* ========================================
   Buttons
======================================== */

.co-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.co-step-panel.co-generation-complete {
    padding: 0;
    margin-top: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.co-step-panel.co-generation-complete .co-actions {
    justify-content: center;
    margin-top: 0;
}

.co-button{
    min-width:180px;
    height: 46px;

    border:none;
    border-radius:10px;

    font-size:15px;
    font-weight:600;

    cursor:pointer;

    transition:.2s;
}

.co-button-primary{
    background:#2563eb;
    color:#fff;
}

.co-button-primary:hover{
    background:#1d4ed8;
}

.cumobtin-step.completed .cumobtin-step-number {
    background: #22c55e;
    color: #ffffff;
}

.cumobtin-step.completed .cumobtin-step-title {
    color: #166534;
}

.cumobtin-step.completed:not(:last-child)::after {
    background: #22c55e;
}

.co-section-title {
    margin-top: 8px;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;

    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
}

.co-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: #fff;
    background-image: none !important;

    cursor: pointer;
}

.co-address-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 2.4fr)
        minmax(0, 0.7fr)
        minmax(0, 0.7fr)
        minmax(0, 0.7fr);
    column-gap: 16px;
    row-gap: 6px;
    margin-top: 12px;
    margin-bottom: 8px;
    align-items: end;
}

.co-address-grid .co-input {
    min-width: 0;
}

@media (max-width: 767px) {
    .co-address-grid {
        grid-template-columns: 1fr 1fr;
    }

    .co-address-grid .co-field:first-child {
        grid-column: 1 / -1;
    }
}

.co-address-grid-bottom{
    display:grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items:end;
    gap: 10px;
}

@media (max-width: 767px){

    .co-address-grid{
        grid-template-columns:1fr 1fr;
    }

    .co-address-grid .co-field:first-child{
        grid-column:1 / -1;
    }

    .co-address-grid-bottom{
        grid-template-columns:1fr 1fr;
    }

    .co-address-grid-bottom .co-field:last-child{
        grid-column:1 / -1;
    }

}

.co-inline-radios {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
    margin-bottom: 24px;
}

.co-inline-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
}

.co-inline-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}
/* ========================================
   Final summary
======================================== */

.co-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 16px;
}

.co-summary-box {
    min-width: 0;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #52627a;
    line-height: 1.7;
}

.co-summary-box::before {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#summary-seller::before {
    content: "Vânzător";
}

#summary-buyer::before {
    content: "Cumpărător";
}

#summary-vehicle::before {
    content: "Vehicul";
}

#summary-price::before {
    content: "Preț";
}

.co-summary-box strong {
    color: #1e293b;
    font-size: 16px;
}

@media (max-width: 767px) {
    .co-summary {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }
}
/* ========================================
   Final confirmation
======================================== */

.co-confirmation {
    display: flex;
    justify-content: center;
    margin: 18px 0 4px;
    padding: 14px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
}

.co-confirmation label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    color: #1e3a5f;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.co-confirmation input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
    flex: 0 0 auto;
}
