/* ==========================================================================
   Search Partner / Multi-step Registration Form Styles
   ========================================================================== */

.search-partner-page {
    background: linear-gradient(135deg, #FAF5F7 0%, #FFFFFF 100%);
    min-height: 100vh;
    padding: 60px 20px;
    font-family: var(--font-body);
}

.sp-header {
    text-align: center;
    margin-bottom: 40px;
}

.sp-header h1 {
    font-family: var(--font-heading);
    color: #29020C;
    font-size: 36px;
    margin-bottom: 10px;
}

.sp-header p {
    color: #E91E63;
    font-size: 16px;
    font-weight: 500;
}

/* Form Container */
.sp-form-container {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.08), 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(245, 197, 66, 0.3);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Progress Bar */
.sp-progress-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 55px;
}

.sp-progress-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #FCE4EC;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.sp-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #F5C542, #E91E63);
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.4s ease;
    border-radius: 2px;
}

.sp-step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF;
    border: 3px solid #FCE4EC;
    color: #999;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: all 0.4s ease;
}

.sp-step-indicator.active {
    border-color: #E91E63;
    color: #E91E63;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.sp-step-indicator.completed {
    background: #E91E63;
    border-color: #E91E63;
    color: #FFF;
}

.sp-step-indicator span {
    position: absolute;
    bottom: -25px;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    font-weight: 500;
}

.sp-step-indicator.active span {
    color: #E91E63;
    font-weight: 700;
}

/* Step Sections */
.sp-step {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.sp-step.active {
    display: block;
}

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

.sp-step h2 {
    font-family: var(--font-heading);
    color: #29020C;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #FCE4EC;
}

/* Form Grid */
.sp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sp-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-form-group.full-width {
    grid-column: 1 / -1;
}

.sp-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4A081A;
}

.sp-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #E0E0E0;
    background: #FAF5F7;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
}

.sp-input:focus {
    background: #FFF;
    border-color: #E91E63;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.sp-input.input-error {
    border-color: #E53935 !important;
    background-color: #FFF5F5 !important;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.2) !important;
    animation: spShake 0.4s ease-in-out;
}

.required-star {
    color: #E53935;
    font-weight: 700;
    margin-left: 3px;
    font-size: 15px;
}

@keyframes spShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.sp-input::placeholder {
    color: #AAA;
}

/* Custom File Upload Styling */
input[type="file"].sp-input {
    padding: 8px 10px;
    background: #fff;
    cursor: pointer;
}

input[type="file"].sp-input::file-selector-button {
    background-color: #E91E63;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.3s ease;
}

input[type="file"].sp-input::file-selector-button:hover {
    background-color: #C2185B;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(233, 30, 99, 0.2);
}

/* Radio & Checkbox styling */
.sp-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    min-height: 45px;
}

.sp-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.sp-radio-label input[type="radio"],
.sp-radio-label input[type="checkbox"] {
    accent-color: #E91E63;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Range Inputs */
.sp-range-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sp-range-group span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.inline-flex {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Buttons */
.sp-btn-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #EEE;
}

.sp-btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.sp-btn-prev {
    background: #FCE4EC;
    color: #C2185B;
}

.sp-btn-prev:hover {
    background: #F8BBD0;
}

.sp-btn-next {
    background: linear-gradient(135deg, #E91E63, #C2185B);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    margin-left: auto;
}

.sp-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.sp-btn-submit {
    background: linear-gradient(135deg, #F5C542, #D49D18);
    color: #29020C;
    box-shadow: 0 4px 15px rgba(245, 197, 66, 0.3);
    margin-left: auto;
    display: none; /* hidden initially */
}

.sp-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 197, 66, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-partner-page {
        padding: 16px 8px 30px 8px;
    }

    .sp-header {
        margin-bottom: 14px;
        padding: 0 5px;
    }
    
    .sp-header h1 {
        font-size: 20px;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .sp-header p {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 0;
    }
    
    .sp-form-container {
        padding: 16px 12px 18px 12px;
        margin: 0;
        border-radius: 16px;
        box-shadow: 0 10px 25px rgba(233, 30, 99, 0.06);
    }

    .sp-progress-wrapper {
        margin-top: 2px;
        margin-bottom: 16px;
    }
    
    .sp-step-indicator {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-width: 2px;
    }

    .sp-step-indicator span {
        display: none;
    }

    .sp-step h2,
    .sp-step-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 6px;
        border-bottom-width: 1px;
    }

    .sp-form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sp-form-group {
        margin-bottom: 6px;
        gap: 3px;
    }

    .sp-form-group label {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .sp-input, .sp-select, .sp-textarea {
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 8px;
    }

    .radio-group {
        gap: 14px;
        margin-top: 2px;
    }

    .custom-radio {
        font-size: 12.5px;
        gap: 6px;
    }

    .sp-btn-wrapper {
        margin-top: 15px;
        padding-top: 12px;
    }

    .sp-btn {
        padding: 8px 20px;
        font-size: 13px;
        border-radius: 20px;
    }
}
