/* Existing styles */

/* Additional styles */

html, body {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
    font-family: 'Roboto', sans-serif;
    background-image: url('a2.png');
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header img {
    height: 40px;
    margin-right: 1rem;
}

nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex: 1;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffd700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-form {
    padding: 2rem;
    margin: 2rem auto;
    max-width: 400px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.input-container i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.login-form input {
    width: calc(100% - 60px); /* Adjusted input width */
    padding: 0.75rem 2.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-form input.error {
    border-color: red;
}

.login-form button {
    background-color: #000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-form button:hover {
    background-color: #333;
    transform: scale(1.05);
}

.error-message {
    color: red;
    display: none;
    margin-bottom: 1rem;
}

.profile-dashboard {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2rem;
    display: none;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-info {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.profile-dashboard h2 {
    margin-bottom: 1rem;
}

.profile-dashboard p {
    margin-bottom: 0.5rem;
}

.profile-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-buttons button {
    flex: 1;
    background-color: #000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-buttons button:hover {
    background-color: #333;
    transform: scale(1.05);
}

.dashboard {
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard p {
    font-size: 1rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.dashboard .ptc-balance {
    color: #00ff00;
}

.copy-icon {
    cursor: pointer;
    margin-left: 0.5rem;
    color: #555;
}

.copy-icon:hover {
    color: #000;
}

footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
}

.hero {
    padding: 2rem;
    margin-bottom: 2rem;
}

.hero h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.hero button {
    background-color: #000;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero button:hover {
    background-color: #333;
    transform: scale(1.05);
}

.rates-board {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rate-item {
    text-align: center;
    padding: 1rem;
}

.rate-item h3 {
    margin-bottom: 0.5rem;
}

.rate-item p {
    margin: 0;
    font-size: 1.2rem;
}

.testimonials {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    color: #333;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-item p {
    margin: 0;
}

.faqs {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    color: #333;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-item h3 {
    cursor: pointer;
    margin: 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item p {
    display: none;
    margin: 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    nav {
        display: flex;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .container {
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.9);
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .rates-board {
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero button {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .profile-dashboard, .login-form {
        margin: 0 auto;
        max-width: 90%;
    }

    body {
        overflow-x: hidden;
    }
}

/* Additional styles for testimonials slider */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    transition: opacity 1s;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-nav button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.slider-nav button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.pagination button:hover {
    background-color: #333;
}

.input-container {
    position: relative;
}

.input-container .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
}

.input-container .toggle-password:hover {
    color: #333;
}

.error-message {
    color: red;
    display: none;
    margin-bottom: 1rem;
}

/* Additional styles for advanced input and button */
.advanced-input {
    width: 80%; /* Reduced width */
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 50px; /* More rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px; /* Max width for better responsiveness */
}

.advanced-button {
    background-color: #000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px; /* More rounded corners */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.advanced-button:hover {
    background-color: #333;
    transform: scale(1.05);
}

.advanced-select {
    width: 80%; /* Reduced width */
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 50px; /* More rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px; /* Max width for better responsiveness */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" height="24" stroke="%23ccc" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.advanced-input-container,
.advanced-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.error-message {
    color: red;
    display: none;
    margin-bottom: 1rem;
    text-align: center; /* Centered text */
}

.wallet-options {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    z-index: 999;
    width: 300px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Additional styles for wallet options */
.wallet-options {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    z-index: 999;
    width: 300px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.wallet-option {
    background-color: white;
    color: black;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    margin: 10px 0;
    border-radius: 5px;
    transition: background 0.3s;
    width: 100%;
    justify-content: start;
}

.wallet-option img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.wallet-option:hover {
    background-color: #ddd;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    display: none;
}

/* Add this CSS to handle the loading message */
#loading-message {
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}
