/* CP Portal Registration Styles */

.cp-portal-register-wrapper {
    margin: 30px 0;
    text-align: center;
}

.cp-portal-register-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #0073aa;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cp-portal-register-btn:hover {
    background-color: #005177;
    color: #ffffff !important;
}

/* Registration Form Styles */

.cp-portal-registration-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.cp-event-info {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f7f7f7;
    border-left: 4px solid #0073aa;
}

.cp-event-info h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.cp-error-message {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cp-registration-form .form-group {
    margin-bottom: 20px;
}

.cp-registration-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.cp-registration-form .required {
    color: #e74c3c;
}

.cp-registration-form input[type="text"],
.cp-registration-form input[type="email"],
.cp-registration-form input[type="number"],
.cp-registration-form select,
.cp-registration-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.cp-registration-form input:focus,
.cp-registration-form select:focus,
.cp-registration-form textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.cp-registration-form textarea {
    resize: vertical;
}

.cp-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cp-submit-btn:hover {
    background-color: #005177;
}

.cp-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.cp-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.cp-form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cp-form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .cp-portal-registration-form-wrapper {
        padding: 10px;
    }

    .cp-registration-form input[type="text"],
    .cp-registration-form input[type="email"],
    .cp-registration-form input[type="number"],
    .cp-registration-form select,
    .cp-registration-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Confirmation Page Styles */

.cp-portal-confirmation-wrapper {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px;
}

.cp-confirmation-box {
    text-align: center;
    padding: 60px 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cp-success-icon {
    margin-bottom: 30px;
}

.cp-success-icon svg {
    animation: scaleIn 0.5s ease-in-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cp-confirmation-box h1 {
    font-size: 32px;
    color: #28a745;
    margin-bottom: 20px;
}

.confirmation-message {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.confirmation-details {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.confirmation-actions a {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-home {
    background-color: #0073aa;
    color: #ffffff !important;
}

.btn-home:hover {
    background-color: #005177;
}

.btn-events {
    background-color: #f7f7f7;
    color: #333 !important;
    border: 2px solid #ddd;
}

.btn-events:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}

@media (max-width: 768px) {
    .cp-confirmation-box {
        padding: 40px 20px;
    }

    .cp-confirmation-box h1 {
        font-size: 26px;
    }

    .confirmation-message {
        font-size: 18px;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions a {
        width: 100%;
    }
}

/* Sign In Toggle */
.cp-signin-toggle-wrapper {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.cp-signin-toggle {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.cp-signin-toggle a,
.cp-register-toggle a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.cp-signin-toggle a:hover,
.cp-register-toggle a:hover {
    text-decoration: underline;
}

/* Sign In Form Wrapper */
.cp-signin-form-wrapper {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cp-signin-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

/* Verification Instruction */
.verification-instruction {
    background-color: #e7f3ff;
    padding: 12px 15px;
    border-left: 4px solid #0073aa;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
}

/* Register Toggle */
.cp-register-toggle {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* Back Button */
.cp-back-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}

.cp-back-btn:hover {
    background-color: #5a6268;
}

/* Form Message Styling */
.cp-form-message {
    margin-top: 15px;
}

.cp-form-message p {
    padding: 12px 15px;
    border-radius: 5px;
    margin: 0;
}

.cp-form-message p.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.cp-form-message p.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cp-back-btn {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .cp-submit-btn {
        width: 100%;
    }
}