/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

.crp-registration-form,
.crp-login-form,
.crp-dashboard,
.crp-application-success,
.crp-payment-success {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.crp-registration-form h2,
.crp-login-form h2,
.crp-dashboard h2,
.crp-application-success h2,
.crp-payment-success h2 {
    color: #cb6843;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.form-group textarea {
    min-height: 100px;
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #cb6843;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s;
}

.button:hover {
    background: #b3593a;
}

.button-primary {
    background: #cb6843;
}

.button-primary:hover {
    background: #b3593a;
}

.login-link,
.registration-link {
    margin-top: 1.5rem;
    text-align: center;
}

.login-link a,
.registration-link a {
    color: #cb6843;
    text-decoration: none;
}

.login-link a:hover,
.registration-link a:hover {
    text-decoration: underline;
}

.error-message {
    color: #d9534f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.profile-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-photo img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-details p {
    margin: 0.5rem 0;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.application-section,
.requirements-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.requirement-card {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Modal Styles */
.crp-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Payment Page Styles */
.crp-payment-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.payment-details {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* Application Details Styles */
.application-details {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.application-details p {
    margin: 0.5rem 0;
}

.application-details img {
    margin-top: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
    }
   
    .profile-photo {
        margin-bottom: 1rem;
    }
   
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
}

/* Modal Styles - Updated */
.crp-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #cb6843;
}

/* Scrollbar styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cb6843;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #b3593a;
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20px auto;
        padding: 1.5rem;
        max-height: 85vh;
    }
}

.password-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 16px;
}

/* Layout for first & last name fields */
.form-name-fields {
    display: flex;
    gap: 15px; /* space between fields */
    flex-wrap: wrap;
}

.form-name-fields .form-group.half-width {
    flex: 0 0 48%; /* slightly less than 50% to account for gaps */
    max-width: 48%;
}

/* Responsive styles */
@media (max-width: 768px) {
    .form-name-fields .form-group.half-width,
    .form-name-fields {
        flex-direction: column;
    }

    .form-name-fields .form-group.half-width {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
}



/* CODE FOR NEW UPDATES */


/* Registration Success Page */
.crp-registration-success {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.crp-registration-success h2 {
    color: #28a745;
    margin-bottom: 1.5rem;
}

.success-message {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.success-message p {
    margin: 0.5rem 0;
}

.success-actions {
    margin-top: 1.5rem;
}


/* code for conformation of email */

/* Registration Success Page - Additional Styles */
.email-notice {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #cb6843;
    border-radius: 4px;
}

.user-email {
    font-size: 1.1em;
    color: #cb6843;
    margin: 0.5rem 0;
    word-break: break-all;
}

.resend-email-link {
    margin-top: 1rem;
    font-size: 0.9em;
    color: #666;
}

.resend-email-link a {
    color: #cb6843;
    text-decoration: none;
}

.resend-email-link a:hover {
    text-decoration: underline;
}



