:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
}

h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

input, textarea, button {
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    -webkit-tap-highlight-color: transparent;
}

button:hover, button:active {
    background-color: #0069d9;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
    display: block;
}

th, td {
    padding: 10px;
    border: 1px solid var(--secondary-color);
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: white;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover, a:active {
    text-decoration: underline;
}

/* Stripe Card Element Styling */
#card-element {
    border: 2px solid var(--primary-color);
    padding: 12px;
    background-color: #fff;
    border-radius: 4px;
    margin-top: 5px;
    min-height: 50px;
    width: 100%;
}

label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
    text-align: left;
}

.fallback-text {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

/* Mobile Optimization */
@media screen and (max-width: 600px) {
    .container {
        padding: 10px;
        margin: 10px auto;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    input, textarea, button {
        padding: 10px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 5px;
    }
}

/* Fix for iOS input shadows */
input, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Improve touch targets */
button, a, input[type="checkbox"], input[type="radio"] {
    min-height: 44px;
}

/* Fix viewport on mobile */
@viewport {
    width: device-width;
    zoom: 1.0;
}

@-ms-viewport {
    width: device-width;
}