/* -- Imports font from Google Fonts -- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* -- CSS Variables for a refined color palette -- */
:root {
    --primary-color: #4a00e0;
    --secondary-color: #8e2de2;
    --background-color: #fdfcff;
    --card-background: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #8492a6;
    --border-color: #e6e6fa;
}

/* -- General Page Styling -- */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    background: linear-gradient(to right, #fdfcff, #f3f2f7);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.7;
}

/* -- Header Styling -- */
header {
    width: 100%;
    background-color: transparent;
    padding: 30px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 1px;
    color: var(--primary-color);
}

/* -- Main Content & Form Container Styling -- */
main {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 20px 60px;
}

.form-container {
    background-color: var(--card-background);
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.1);
    max-width: 650px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border-color);
}

.form-container h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.form-container p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* -- Footer Styling -- */
footer {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    color: var(--text-light);
    font-size: 14px;
    margin-top: auto;
    background-color: transparent;
}

/* -- A more specific rule to override HubSpot's default button style -- */
.hs-form-container .hs-button[type="submit"] {
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color)) !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.4s ease !important;
    background-size: 200% auto !important;
}

.hs-form-container .hs-button[type="submit"]:hover {
    background-position: right center !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}