/* ============================================
   COOP Landing - Registration Pages
   Matches Figma: ACRI - Landing pages (Copy)
   ============================================ */

.lp-register-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--coop-light-blue);
}

/* Wrapper: full viewport, two-panel layout */
.lp-reg-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    border-radius: 40px;
    overflow: hidden;
}

/* ===== LEFT PANEL ===== */
.lp-reg-left {
    width: 50%;
    background: var(--coop-blue);
    border-radius: 40px;
    padding: 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lp-reg-left-subtitle {
    font-family: var(--font-jost);
    font-weight: 500;
    font-size: 30px;
    color: #fff;
    margin: 0 0 16px 0;
    width: 100%;
}

.lp-reg-left-title {
    font-family: var(--font-jost);
    font-weight: 500;
    font-size: 45px;
    color: #fff;
    margin: 0 0 48px 0;
    line-height: 1.2;
    width: 100%;
}

/* Cards container */
.lp-reg-left-cards {
    display: flex;
    gap: 38px;
    width: 100%;
    justify-content: center;
}

/* Each card: image + button stacked, button overlaps image bottom */
.lp-reg-left-card {
    flex: 1;
    max-width: 312px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lp-reg-left-img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 300 / 495;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.lp-reg-left-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Checkmark icon - hidden by default */
.lp-reg-check {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: var(--coop-blue);
    border: 2px solid #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 3;
    display: none;
}

/* Show checkmark when image is selected */
.lp-reg-left-img.selected .lp-reg-check {
    display: flex;
}

/* Default: both images look identical */
.lp-reg-left-img--producer,
.lp-reg-left-img--user {
    border-radius: 12px;
}

/* After selection: active image gets cream border + flat bottom */
.lp-reg-left-img.selected {
    border: 12px solid var(--coop-cream);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    overflow: visible;
}

.lp-reg-left-img.selected img {
    border-radius: 0;
}

/* Button: overlaps bottom of the image by pulling up with negative margin */
.lp-reg-left-btn {
    width: 100%;
    height: 55px;
    margin-top: -19px;
    border-radius: 12px;
    background: var(--coop-cream);
    border: none;
    font-family: var(--font-jost);
    font-weight: 500;
    font-size: 20px;
    cursor: pointer;
    transition: box-shadow 0.2s;
    position: relative;
    z-index: 2;
}

.lp-reg-left-btn:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.lp-reg-left-btn--producer {
    color: var(--coop-green);
}

.lp-reg-left-btn--user {
    color: var(--coop-blue);
}

.lp-reg-left-btn.active {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ===== RIGHT PANEL ===== */
.lp-reg-right {
    width: 50%;
    background: var(--coop-light-blue);
    padding: 96px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Step visibility */
.lp-reg-step {
    display: none;
    flex-direction: column;
}

.lp-reg-step.active {
    display: flex;
}

/* Step 0 - Type selection (right panel content) */
.lp-reg-right-arrow {
    position: absolute;
    top: 67px;
    right: 80px;
}

.lp-reg-divider {
    border: none;
    border-top: 1px solid var(--coop-blue);
    position: absolute;
    top: 178px;
    left: 80px;
    right: 80px;
    margin: 0;
}

.lp-reg-right-subtitle {
    font-family: var(--font-jost);
    font-weight: 500;
    font-size: 30px;
    color: var(--coop-blue);
    margin: 0 0 16px 0;
}

.lp-reg-right-title {
    font-family: var(--font-jost);
    font-weight: 600;
    font-size: 45px;
    color: var(--coop-blue);
    margin: 0;
    line-height: 1.55;
}

/* Step header with back + indicator */
.lp-reg-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.lp-reg-back {
    width: 46px;
    height: 46px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lp-reg-back:hover svg path {
    stroke: var(--coop-dark);
}

.lp-reg-step-indicator {
    font-family: var(--font-jost);
    font-weight: 500;
    font-size: 20px;
    color: var(--coop-blue);
    text-align: right;
}

/* Form elements */
.lp-reg-form-group {
    margin-bottom: 24px;
}

.lp-reg-label {
    display: block;
    font-family: var(--font-jost);
    font-weight: 500;
    font-size: 18px;
    color: var(--coop-dark);
    margin-bottom: 10px;
}

.lp-reg-input {
    width: 100%;
    height: 55px;
    background: var(--coop-cream);
    border: none;
    border-radius: 12px;
    padding: 0 23px;
    font-family: var(--font-jost);
    font-weight: 400;
    font-size: 18px;
    color: var(--coop-dark);
    outline: none;
    transition: box-shadow 0.2s;
}

.lp-reg-input:focus {
    box-shadow: 0 0 0 2px var(--coop-blue);
}

.lp-reg-input::placeholder {
    color: var(--coop-light-purple);
}

.lp-reg-input--readonly {
    display: flex;
    align-items: center;
    cursor: default;
}

.lp-reg-input-value {
    font-family: var(--font-jost);
    font-weight: 400;
    font-size: 18px;
}

.lp-reg-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2328282A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 23px center;
    padding-right: 50px;
}

/* Input wrapper for password fields */
.lp-reg-input-wrap {
    position: relative;
}

.lp-reg-input-wrap .lp-reg-input {
    padding-right: 160px;
}

.lp-reg-password-strength {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-jost);
    font-weight: 400;
    font-size: 18px;
    color: var(--coop-green);
    text-align: right;
}

.lp-reg-eye {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--coop-dark);
    opacity: 0.5;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-reg-eye:hover {
    opacity: 1;
}

/* Checkbox */
.lp-reg-checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.lp-reg-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--coop-dark);
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    flex-shrink: 0;
}

.lp-reg-checkbox:checked {
    background: var(--coop-blue);
    border-color: var(--coop-blue);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4.5 7.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.lp-reg-checkbox-label {
    font-family: var(--font-jost);
    font-weight: 400;
    font-size: 18px;
    color: var(--coop-dark);
    cursor: pointer;
}

/* Continue/Submit button */
.lp-reg-btn-continue {
    width: 100%;
    height: 60px;
    background: var(--coop-blue);
    border: none;
    border-radius: 12px;
    font-family: var(--font-jost);
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: auto;
}

.lp-reg-btn-continue:hover {
    background: #3d8ae6;
    transform: translateY(-1px);
}

/* Confirmation page */
.lp-reg-confirm-title {
    font-family: var(--font-jost);
    font-weight: 500;
    font-size: 45px;
    color: var(--coop-dark);
    margin: 0 0 20px 0;
    line-height: 1.445;
}

.lp-reg-confirm-text {
    font-family: var(--font-jost);
    font-weight: 300;
    font-size: 20px;
    color: var(--coop-dark);
    margin: 0 0 24px 0;
    line-height: 1.445;
}

.lp-reg-confirm-question {
    font-family: var(--font-jost);
    font-weight: 300;
    font-size: 20px;
    color: var(--coop-dark);
    margin: 0 0 40px 0;
}

/* Error toast */
.lp-reg-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #FEE2E2;
    color: #991B1B;
    padding: 16px 24px;
    border-radius: 12px;
    font-family: var(--font-jost);
    font-size: 16px;
    display: none;
    z-index: 1000;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lp-reg-error.visible {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .lp-reg-left {
        padding: 0 60px;
    }
    .lp-reg-left-title {
        font-size: 38px;
    }
    .lp-reg-left-cards {
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .lp-reg-left {
        padding: 0 40px;
    }
    .lp-reg-right {
        padding: 60px 50px;
    }
    .lp-reg-right-arrow {
        top: 40px;
        right: 50px;
    }
    .lp-reg-divider {
        top: 130px;
        left: 50px;
        right: 50px;
    }
    .lp-reg-left-title {
        font-size: 32px;
    }
    .lp-reg-right-title {
        font-size: 36px;
    }
    .lp-reg-left-btn {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .lp-reg-wrapper {
        flex-direction: column;
        border-radius: 0;
    }
    .lp-reg-left {
        width: 100%;
        border-radius: 0;
        padding: 40px 24px;
    }
    .lp-reg-right {
        width: 100%;
        padding: 40px 24px;
    }
    .lp-reg-left-cards {
        gap: 16px;
    }
    .lp-reg-left-card {
        max-width: 220px;
    }
    .lp-reg-left-title {
        font-size: 28px;
    }
    .lp-reg-right-title {
        font-size: 28px;
    }
    .lp-reg-left-btn {
        font-size: 14px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .lp-reg-left {
        padding: 32px 20px;
    }
    .lp-reg-right {
        padding: 32px 20px;
    }
    .lp-reg-left-subtitle {
        font-size: 22px;
    }
    .lp-reg-left-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .lp-reg-left-card {
        max-width: 160px;
    }
    .lp-reg-confirm-title {
        font-size: 32px;
    }
}

/* Terms link in checkbox label */
.lp-reg-terms-link {
    color: var(--coop-blue);
    text-decoration: underline;
    cursor: pointer;
}

.lp-reg-terms-link:hover {
    color: var(--coop-dark);
}

/* ===== TERMS MODAL ===== */
.lp-terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lp-terms-modal.open {
    display: flex;
}

.lp-terms-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 40, 42, 0.5);
}

.lp-terms-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.lp-terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.lp-terms-modal-title {
    font-family: var(--font-jost);
    font-weight: 600;
    font-size: 24px;
    color: var(--coop-dark);
    margin: 0;
}

.lp-terms-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-terms-modal-close:hover {
    background: rgba(40,40,42,0.08);
}

.lp-terms-modal-body {
    padding: 32px;
    overflow-y: auto;
    font-family: var(--font-jost);
    font-size: 16px;
    line-height: 1.6;
    color: var(--coop-dark);
}

.lp-terms-modal-body h1,
.lp-terms-modal-body h2,
.lp-terms-modal-body h3 {
    font-family: var(--font-jost);
    margin-top: 24px;
    margin-bottom: 12px;
}

.lp-terms-modal-body p {
    margin-bottom: 12px;
}

@media (max-width: 576px) {
    .lp-terms-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }
    .lp-terms-modal-header {
        padding: 16px 20px;
    }
    .lp-terms-modal-body {
        padding: 20px;
    }
}
