/* Profile Completion Popup Styles - Routiz Design System */

/* Profile Completion Popup Styles - Routiz Design System */
.thechamp-completion-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.thechamp-completion-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateY(-50.09%);
    display: none;
    flex-direction: column;
    max-height: 85vh;
    min-height: 164px;
    width: 480px;
    margin-left: -240px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    animation: thechamp-slideIn 0.3s ease-out;
}

.thechamp-completion-popup.rz-visible {
    display: flex;
}

@keyframes thechamp-slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.thechamp-completion-header {
    padding: 1.5rem;
    border-bottom: 1px solid #dddddd;
}

.thechamp-completion-header h2 {
    padding: 0;
    margin: 0;
    font-size: 19px;
    line-height: 35px;
    text-align: center;
    font-weight: 600;
}

.thechamp-completion-header p {
    margin: 0;
    color: #666666;
    font-size: 13px;
}

.thechamp-completion-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    overflow-y: hidden;
}

.thechamp-completion-container {
    position: relative;
    width: 100%;
    padding: 1.75rem 1.5rem;
    overflow-y: auto;
}

.thechamp-form-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

.thechamp-form-group label {
    display: block;
    margin: 0 0 1rem;
    color: #000000;
    font-size: 0.9rem;
    line-height: 1.25rem;
    color: #000000;
    font-weight: 700;
}

.thechamp-form-group input[type=email],
.thechamp-form-group input[type=number],
.thechamp-form-group input[type=password],
.thechamp-form-group input[type=tel],
.thechamp-form-group input[type=text],
.thechamp-form-group select,
.thechamp-form-group select[multiple],
.thechamp-form-group textarea {
    width: 100%;
    max-width: 100%;
    height: 41px;
    padding: 9px 15px;
    margin: 0;
    background: transparent;
    background-color: #f5f5f5;
    color: #000000;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.thechamp-form-group input[type=email]:focus,
.thechamp-form-group input[type=number]:focus,
.thechamp-form-group input[type=password]:focus,
.thechamp-form-group input[type=tel]:focus,
.thechamp-form-group input[type=text]:focus,
.thechamp-form-group select:focus,
.thechamp-form-group select[multiple]:focus,
.thechamp-form-group textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px #333333, 0 3px 8px 0 rgba(0, 0, 0, 0.1);
}

.thechamp-form-group textarea {
    height: 100px;
    resize: vertical;
    font-family: inherit;
}

.thechamp-required {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 0 2px 3px;
    vertical-align: middle;
    background-color: #ff6b6b;
    border-radius: 50%;
}

.thechamp-submit-btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    margin: 0;
    font-size: 15px;
    line-height: 21px;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: transparent;
    background-color: #333333;
    color: #ffffff;
    border: 0;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thechamp-submit-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.thechamp-submit-btn:active {
    transform: translateY(0);
}

.thechamp-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1.5rem;
    transition: all 0.3s ease;
    font-size: 20px;
    color: #000000;
    background: none;
    border: none;
    cursor: pointer;
}

.thechamp-close-btn:hover {
    color: #333333;
}

/* Mobile Responsive - Routiz Style */
@media (max-width: 991.98px) {
    .thechamp-completion-popup {
        flex-direction: column;
        width: auto !important;
        max-height: none;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        transform: translateY(0);
        margin-left: 0 !important;
        box-shadow: none;
        border-radius: 0;
    }
    
    .thechamp-completion-header {
        padding: 1rem;
        border-bottom: 1px solid #ededed;
    }
    
    .thechamp-completion-header h2 {
        font-size: 17px;
        text-align: left;
    }
    
    .thechamp-completion-container {
        padding: 1rem;
    }
    
    .thechamp-form-group input,
    .thechamp-form-group select,
    .thechamp-form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Loading State */
.thechamp-submit-btn.loading {
    background: #999999;
    cursor: not-allowed;
    transform: none;
}

.thechamp-submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: thechamp-spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes thechamp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message - Routiz Style */
.thechamp-success-message {
    display: none;
    width: 100%;
    padding: 10px 13px;
    margin: 0 0.75rem 1.5rem;
    background-color: #e8f5e8;
    color: #2d5a2d;
    font-weight: 700;
    border-radius: 10px;
}

.thechamp-success-message.rz-active {
    display: block;
}

.thechamp-success-message::before {
    content: '✓';
    margin-right: 8px;
    font-weight: bold;
    font-size: 18px;
}

/* Error Message - Routiz Style */
.thechamp-error-message {
    display: none;
    width: 100%;
    padding: 10px 13px;
    margin: 0 0.75rem 1.5rem;
    background-color: #f5e8e8;
    color: #d32f2f;
    font-weight: 700;
    border-radius: 10px;
}

.thechamp-error-message.rz-active {
    display: block;
}

.thechamp-error-message::before {
    content: '✗';
    margin-right: 8px;
    font-weight: bold;
    font-size: 18px;
}

/* Role Selector - Routiz Style */
.thechamp-role-selector {
    max-width: 280px;
    margin: 2.5rem auto 3rem;
    text-align: center;
}

.thechamp-role-options {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 -.75rem;
    font-weight: 600;
}

.thechamp-role-option {
    flex: 1;
    margin: 0 .75rem;
    cursor: pointer;
}

.thechamp-role-option a {
    display: block;
    padding: 1rem;
    border: 3px solid #666666;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.thechamp-role-option a:hover {
    background-color: #f5f5f5;
}

.thechamp-role-option.active a {
    border-color: #333333;
    background-color: #333333;
    color: #ffffff;
}

.thechamp-role-icon {
    max-width: 56px;
    max-height: 56px;
    margin: 0 auto 0.5rem;
    display: block;
    font-size: 32px;
    line-height: 56px;
}

.thechamp-role-option span {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

/* Mobile responsive for role selector */
@media (max-width: 768px) {
    .thechamp-role-selector {
        max-width: 100%;
        margin: 1.5rem auto 2rem;
    }
    
    .thechamp-role-options {
        flex-direction: column;
        margin: 0;
    }
    
    .thechamp-role-option {
        margin: 0 0 0.75rem 0;
    }
    
    .thechamp-role-option:last-child {
        margin-bottom: 0;
    }
} 