
/* Partner Signup Modal Styles */
.ps-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.ps-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: ps-modal-anim 0.3s ease-out;
}

@keyframes ps-modal-anim {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ps-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ps-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.ps-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.ps-close:hover {
    color: #333;
}

.ps-modal-body {
    padding: 30px;
}

/* Progress Bar */
.ps-progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.ps-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    color: #666;
    font-weight: bold;
    transition: all 0.3s;
}

.ps-progress-step span {
    position: absolute;
    top: 45px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

.ps-progress-step.active {
    background: #2563eb;
    color: #fff;
}

.ps-progress-step.active span {
    color: #2563eb;
    font-weight: bold;
}

.ps-progress-step.completed {
    background: #10b981;
    color: #fff;
}

.ps-progress-line {
    flex-grow: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 5px;
    margin-bottom: 0; /* Align with circles */
    position: relative;
    top: 0;
}

.ps-progress-line.completed {
    background: #10b981;
}

/* Form Styles */
.ps-step h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 18px;
    color: #333;
    border-left: 4px solid #2563eb;
    padding-left: 10px;
}

.ps-tip {
    font-size: 13px;
    color: #666;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.ps-form-group {
    margin-bottom: 20px;
}

.ps-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.ps-form-group .required {
    color: #ef4444;
}

.ps-form-group input[type="text"],
.ps-form-group select,
.ps-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s;
}

.ps-form-group input:focus,
.ps-form-group select:focus,
.ps-form-group textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ps-form-group textarea {
    height: 80px;
    resize: vertical;
}

.ps-captcha-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 15px;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    background: #f8fafc;
}

.ps-captcha-wrap .input-captcha,
.ps-captcha-wrap #captcha {
    width: 140px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

.ps-captcha-wrap img {
    height: 38px;
    border-radius: 4px;
}

.ps-radio-group {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.ps-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

/* Modal Footer Buttons */
.ps-modal-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.ps-btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 14px;
}

.ps-prev {
    background-color: #f3f4f6;
    color: #4b5563;
}

.ps-prev:hover {
    background-color: #e5e7eb;
}

.ps-next, .ps-submit {
    background-color: #2563eb;
    color: #fff;
}

.ps-next:hover, .ps-submit:hover {
    background-color: #1d4ed8;
}

.ps-submit[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .ps-modal-content {
        width: 95%;
        margin: 2% auto;
    }
    .ps-progress-step span {
        display: none;
    }
    .ps-progress-container {
        margin-bottom: 20px;
    }
}

/* Captcha Styling */
.ps-captcha-wrap .input-captcha {
    width: 120px !important;
}

.ps-captcha-wrap img {
    height: 40px;
    vertical-align: middle;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#ccaptcha img {
    border: none;
    height: 20px;
}
