:root {
    --primary-color: #8e44ad;
    --primary-dark: #732d91;
    --secondary-color: #c0392b;
    --secondary-dark: #a83227;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --background-light: #f8f9fa;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}
/* General form styles */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f0f2f5, #e6e8f1);
    margin: 0;
    padding: 0;
}

.membership-form {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.membership-form:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.registration-details {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e4e7;
}

.registration-details h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: #666;
    font-weight: 500;
}

.amount-input-wrapper input {
    padding-left: 30px !important;
}

.membership-form h2 {
    text-align: center;
    color: #333;
    font-size: 26px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.required:after {
    content: " *";
    color: red;
}

.membership-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #444;
    font-weight: 600;
}
#registration-message {
    display: none;
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 4px;
    font-weight: 500;
}

#registration-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#registration-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional styles for better form feedback */
.form-group.has-error input,
.form-group.has-error select {
    border-color: #dc3545;
}

.form-group.has-error .error-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 4px;
}

/* Disabled button state */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.membership-form input[type="text"],
.membership-form input[type="tel"],
.membership-form input[type="email"],
.membership-form input[type="number"],
.membership-form input[type="password"],
.membership-form select,
.membership-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Input focus styles */
.membership-form input[type="text"]:focus,
.membership-form input[type="tel"]:focus,
.membership-form input[type="email"]:focus,
.membership-form input[type="number"]:focus,
.membership-form input[type="password"]:focus,
.membership-form select:focus,
.membership-form textarea:focus {
    border-color: #8e44ad; /* Purple focus from logo colors */
    box-shadow: 0 0 8px rgba(142, 68, 173, 0.3);
    outline: none;
}

/* Styling for textarea */
.membership-form textarea {
    height: 120px;
    resize: none;
}

/* Button styling with gradient */
.membership-form button {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8e44ad, #c0392b); /* Gradient from logo colors */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.membership-form button:hover {
    background: linear-gradient(135deg, #732d91, #a83227); /* Darker gradient for hover */
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.4);
}

/* Error message styles */
.membership-form .error-message {
    color: #ff0000;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Success message styles */
.membership-form .success-message {
    color: #4CAF50;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Registration message box */
#registration-message {
    text-align: center;
    font-size: 16px;
    padding: 10px;
    border-radius: 6px;
}

#registration-message.success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

#registration-message.error {
    color: #e74c3c;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Updated dropdown style */
.membership-form select {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #fff;
    appearance: none;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23333" d="M2 0L0 2h4z"/></svg>'); /* Custom dropdown arrow */
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    color: #333; /* Ensures the text is always visible */
}

.membership-form select:focus {
    border-color: #8e44ad;
    box-shadow: 0 0 8px rgba(142, 68, 173, 0.3);
    outline: none;
}

.membership-form select option {
    background-color: #ffffff;
    color: #333;
}

/* Improve select dropdown height */
.membership-form select {
    height: 50px;
}
#branch-details {
    display: none;
}

/* Remove default dropdown arrow for older browsers */
.membership-form select::-ms-expand {
    display: none;
}