/* MyClient Returning Client Registration Styles */
/* Mobile-first design */

.mc-rcr-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
}

.mc-rcr-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mc-rcr-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-rcr-input-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.mc-rcr-input-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mc-rcr-input {
    flex: 1;
    padding: 14px 16px 14px 24px !important;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.mc-rcr-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.mc-rcr-submit {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #173b6b;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    -webkit-appearance: none;
}

.mc-rcr-submit:hover {
    background-color: #122e54;
}

.mc-rcr-submit:active {
    background-color: #0e2442;
}

.mc-rcr-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.mc-rcr-error {
    display: none;
    padding: 12px 16px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.mc-rcr-error.visible,
.mc-rcr-error.mc-rcr-error-visible {
    display: block;
}

.mc-rcr-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    color: #666;
    font-size: 14px;
}

.mc-rcr-loading.visible {
    display: flex;
}

.mc-rcr-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: mc-rcr-spin 0.8s linear infinite;
}

@keyframes mc-rcr-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tablet and up - inline input and button */
@media (min-width: 480px) {
    .mc-rcr-input-row {
        flex-direction: row;
        gap: 0;
    }

    .mc-rcr-input {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-right: none;
    }

    .mc-rcr-input:focus {
        position: relative;
        z-index: 1;
        border-right: 1px solid #0073aa;
    }

    .mc-rcr-submit {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

/* Precheck mode - hide Gravity Form when showing precheck question */
body.mc-rcr-precheck-mode .gform_wrapper {
    display: none !important;
}
