/* 🌿 General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-attachment: fixed; /* Parallax effect */
    background: linear-gradient(to bottom, #e6f9ed, #ffffff); /* Light green gradient */
    color: #333;
    overflow-y: auto;
}

/* 🔥 Blurred Overlay */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.3); /* Softer contrast */
    z-index: 0;
}

/* 📦 Form Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

/* 📝 Headings */
.container h1 {
    text-align: center;
    color: #178C4F; /* Primary Green */
    font-size: 2rem;
    margin-bottom: 15px;
}

.container h2 {
    text-align: center;
    color: #252525; /* Darker shade for contrast */
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* 🔄 Form Fields */
.register {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 📌 Input Field Wrapper */
.register__field {
    flex: 1 1 calc(50% - 20px);
    min-width: calc(50% - 20px);
    position: relative;
}

/* ✨ Input Fields & Dropdowns */
.register__input, 
.register__field select {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid #1db954;
    border-radius: 8px;
    background: transparent;
    font-size: 1rem;
    transition: 0.3s ease-in-out;
    color: #333;
}

.register__input::placeholder, 
.register__field select {
    color: #666;
}

/* 🔍 Icon Inside Input */
.register__icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #1db954;
    font-size: 1.2rem;
}

/* 🎯 Focus Effect */
.register__input:focus,
.register__field select:focus {
    outline: none;
    border-color: #117a3b;
}

/* 🚀 Submit Button */
.register__submit {
    background: linear-gradient(45deg, #1db954, #4fd88b);
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s ease-in-out;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.register__submit:hover {
    background: linear-gradient(45deg, #4fd88b, #1db954);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.register__submit .button__icon {
    transition: transform 0.3s;
}

.register__submit:hover .button__icon {
    transform: translateX(5px);
}

/* 🔗 Links */
.text-center {
    text-align: center;
    margin-top: 20px;
}

.custom-link {
    color: #1db954;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.custom-link:hover {
    text-decoration: underline;
    color: #117a3b;
}

/* ⚠️ Alert Messages */
.alert-messages {
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    background: #eafaf1;
    border-left: 4px solid #1db954;
    color: #117a3b;
}

/* 🎭 Large Icon */
.icon-large {
    text-align: center;
    margin: 20px 0;
}

.icon-large img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.15));
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .register {
        flex-direction: column;
    }

    .register__field {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .container {
        padding: 20px;
        margin: 20px;
    }
}

/* 🌿 Terms Container */
.terms-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 0.9rem;
}

.terms-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-container label {
    cursor: pointer;
    color: #333;
}

.terms-container a {
    color: #1db954;
    text-decoration: none;
    font-weight: bold;
}

.terms-container a:hover {
    text-decoration: underline;
}

/* 🎨 General Modal Styling */
/* 🎨 General Modal Styling */
.terms-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: min(90%, 800px); /* Ensures responsiveness while preventing full width */
    background: linear-gradient(135deg, #1b4332, #4fd88b);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 25px;
    z-index: 1050;
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-in-out;
}


/* 📝 Scrollable Content */
.terms-modal-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 🌿 Smooth Scrollbar */
.terms-modal-content::-webkit-scrollbar {
    width: 8px;
}
.terms-modal-content::-webkit-scrollbar-thumb {
    background: #1b4332;
    border-radius: 8px;
}
.terms-modal-content::-webkit-scrollbar-track {
    background: #e0e0e0;
}

/* 🔥 Headings and Text */
.terms-modal h2 {
    color: #1b4332;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.terms-modal h3 {
    font-size: 1.2rem;
    color: #1b4332;
    margin-top: 15px;
}

.terms-modal p, 
.terms-modal ul {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* ✅ List Styling */
.terms-modal ul {
    list-style: none;
    padding-left: 15px;
}
.terms-modal ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 24px;
}
.terms-modal ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #1db954;
    font-weight: bold;
}

/* ❌ Close Button */
.close-modal {
    position: absolute;
    top: 12px;
    right: 40px;
    font-size: 5rem;
    font-weight: bold;
    color: #1db954;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.1);
    color: #0e6021;
}

/* 🏆 Fancy Fade-in Animation */
.terms-modal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
    .terms-modal {
        width: 95%;
        max-height: 75vh;
    }
}
