/* Apply Inter font globally */
body {
    font-family: 'Inter', sans-serif;
}

/* Style for sticky header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.3s ease-in-out;
}

.sticky-scrolled {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Basic form styling */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151; /* text-gray-700 */
}

input[type="email"],
input[type="text"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db; /* border border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    margin-bottom: 1rem;
    box-shadow: inset 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #4f46e5; /* focus:border-indigo-500 */
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3); /* focus:ring focus:ring-indigo-200 focus:ring-opacity-50 */
}

input[type="checkbox"] {
    margin-right: 0.5rem;
    border-radius: 0.25rem; /* rounded */
    border-color: #d1d5db; /* border-gray-300 */
    color: #4f46e5; /* text-indigo-600 */
    vertical-align: middle; /* Align checkbox nicely with label */
    transition: background-color 0.2s ease-in-out;
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3); /* focus:ring focus:ring-indigo-200 focus:ring-opacity-50 */
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem; /* mb-3 */
}

/* Ensure labels in checkbox groups don't have bottom margin */
.form-checkbox-group label {
    margin-bottom: 0;
    margin-left: 0.25rem; /* ml-1 */
    font-weight: 400; /* font-normal */
    color: #4b5563; /* text-gray-600 */
}

button[type="submit"] {
    display: inline-block;
    width: 100%; /* w-full */
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    background-color: #4f46e5; /* bg-indigo-600 */
    color: white;
    font-weight: 700; /* font-bold */
    border-radius: 0.5rem; /* rounded-lg */
    transition: background-color 0.3s ease-in-out, transform 0.1s ease-in-out;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #4338ca; /* hover:bg-indigo-700 */
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* Custom class for hero title */
.hero-title {
    font-weight: 900; /* Extra bold */
    letter-spacing: -0.025em; /* Slightly tighter spacing */
}

/* Styling for prose content */
.prose-custom {
    max-width: 80ch; /* Adjust max width as needed */
    margin-left: auto;
    margin-right: auto;
    color: #374151; /* text-gray-700 */
}

.prose-custom h2 {
    font-size: 1.875rem; /* text-3xl */
    line-height: 2.25rem;
    font-weight: 700; /* font-bold */
    margin-top: 3rem; /* mt-12 */
    margin-bottom: 1.5rem; /* mb-6 */
    color: #312e81; /* text-indigo-900 */
}

.prose-custom h3 {
    font-size: 1.5rem; /* text-2xl */
    line-height: 2rem;
    font-weight: 700; /* font-bold */
    margin-top: 3rem; /* mt-12 */
    margin-bottom: 1rem; /* mb-4 */
    color: #3730a3; /* text-indigo-800 */
}

.prose-custom p {
    font-size: 1.125rem; /* text-lg */
    line-height: 1.75rem; /* leading-relaxed */
    margin-bottom: 1rem; /* mb-4 - ensures paragraph spacing */
}

.prose-custom ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-bottom: 1rem; /* mb-4 */
    padding-left: 1rem; /* pl-4 */
    font-size: 1.125rem; /* text-lg */
}

.prose-custom ul li {
    margin-bottom: 0.5rem; /* space-y-2 */
}

.prose-custom strong {
    font-weight: 600; /* font-semibold */
    color: #1f2937; /* text-gray-800 */
}

.prose-custom a {
    color: #4f46e5; /* text-indigo-600 */
    text-decoration: underline;
}

.prose-custom a:hover {
    color: #3730a3; /* hover:text-indigo-800 */
}

/* Specific styling for the letter box */
.letter-box {
    background-color: white;
    padding: 2rem; /* p-8 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
    margin-top: 2rem; /* Add some space above the letter */
    font-family: 'Times New Roman', Times, serif; /* Optional: Use a serif font for letter */
    color: #1f2937; /* text-gray-800 */
    line-height: 1.6; /* Adjust line height for readability */
}

.letter-box h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    margin-top: 0; /* Remove top margin */
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.letter-box p {
    font-size: 1rem; /* Reset font size */
    line-height: 1.6;
    margin-bottom: 1em; /* Use em for spacing relative to font size */
    color: #1f2937;
}

.letter-address {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.letter-closing {
    margin-top: 2rem;
    font-size: 1rem;
}

/* Styling for the "How it works" steps */
.how-it-works-step {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 1.5rem; /* space-x-6 equivalent */
    margin-bottom: 2rem; /* mb-8 */
}

.how-it-works-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 3rem; /* w-12 */
    height: 3rem; /* h-12 */
    font-size: 1.875rem; /* text-3xl */
    color: #4f46e5; /* text-indigo-600 */
    display: inline-flex; /* Needed for centering icon */
    align-items: center;
    justify-content: center;
}

.how-it-works-text h4 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    color: #1f2937; /* text-gray-800 */
    margin-bottom: 0.25rem; /* mb-1 */
}

.how-it-works-text p {
    font-size: 1rem; /* text-base */
    color: #4b5563; /* text-gray-600 */
    line-height: 1.5; /* leading-normal */
    margin-bottom: 0; /* Reset paragraph margin */
}

.svg-white {
  filter: brightness(0) invert(1); /* This makes any dark colors white */
}