/* 
Theme Colors:
Primary: #0F4C81
Secondary: #2F6FA3
Light: #DCEAF6
Background: #F7F8FA
Text: #1E1E1E
CTA: #14B8A6
*/

.custom-registration-wrapper {
    background-color: #ffffff; /* White cards on F7F8FA background */
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 76, 129, 0.08);
    max-width: 500px;
    margin: 0 auto;
    font-family: inherit;
    color: #1E1E1E;
}

.cr-title {
    color: #0F4C81;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

/* Role Selection Cards */
.cr-role-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.cr-radio-card {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.cr-radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cr-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 2px solid #DCEAF6;
    border-radius: 12px;
    background-color: #F7F8FA;
    transition: all 0.3s ease;
    color: #2F6FA3;
    font-weight: 600;
}

.cr-card-content i {
    font-size: 24px;
    margin-bottom: 8px;
}

.cr-radio-card input:checked + .cr-card-content {
    border-color: #0F4C81;
    background-color: #0F4C81;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 76, 129, 0.2);
}

/* Floating Inputs */
.cr-floating-group {
    position: relative;
    margin-bottom: 25px;
}

.cr-input {
    width: 100%;
    padding: 18px 15px 10px;
    font-size: 16px;
    color: #1E1E1E;
    background-color: #F7F8FA;
    border: 1px solid #DCEAF6;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.cr-input:focus {
    border-color: #2F6FA3;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(47, 111, 163, 0.1);
}

.cr-label {
    position: absolute;
    top: 50%;
    right: 15px; /* RTL Support */
    transform: translateY(-50%);
    font-size: 16px;
    color: #7a8b9a;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Floating Effect Logic */
.cr-input:focus ~ .cr-label,
.cr-input:not(:placeholder-shown) ~ .cr-label {
    top: 12px;
    font-size: 12px;
    color: #2F6FA3;
    font-weight: 500;
}

/* CTA Button */
.cr-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #14B8A6; /* Highlight CTA Color */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.cr-submit-btn:hover {
    background-color: #109e8e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.3);
}

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

/* Messages */
.cr-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.cr-message.error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.cr-message.success {
    background-color: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.cr-message.pending {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Loader */
.cr-loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* RTL Specific adjustments for Elementor */
.elementor-editor-active .cr-label {
    right: 15px;
}
