:root {
    --primary-color: #734BD1; /* Deep Purple */
    --bg-color: #FFFFFF;
    --text-color: #333333;
    --form-bg: #E8DFF5; /* Light Lavender Background for form */
    --input-bg: #FFFFFF;
    --button-gradient-start: #9D50FF;
    --button-gradient-end: #5D3FD3;
    --nav-link-color: #333333;
    --nav-arrow-color: #5D3FD3;
    --legal-text-color: #444444;
    --legal-heading-color: #111111;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee; /* Subtle separator for legal pages */
}

.header-content {
    display: flex;
    justify-content: flex-start; /* Changed from space-between to allow centering */
    align-items: center;
    padding: 0 40px; /* Full width with some breathing room */
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Adjust height to match header proportions */
    width: auto;
}

nav {
    margin: 0 auto; /* Center the nav */
    padding-right: 100px; /* Offset the logo width to approximate true center if needed, or just let it center in the remaining space */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow {
    color: var(--nav-arrow-color);
    font-size: 10px;
    border: 1px solid var(--nav-arrow-color);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Content Styles */
.main-content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 60px;
    gap: 40px;
}

.left-column {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.right-column {
    flex: 1;
    min-width: 300px;
}

h1 {
    font-size: 42px;
    line-height: 1.2;
    color: #222;
    margin-bottom: 20px;
    font-weight: 700;
}

.highlight {
    color: var(--primary-color);
}

.subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 60px;
    max-width: 500px;
    line-height: 1.6;
}

.image-container {
    width: 100%;
    max-width: 500px;
    /* Optional: To mimic the fade effect at the bottom if needed */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Form Styles */
.form-container {
    background-color: var(--form-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 25px; /* Pill shape for inputs */
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background-color: var(--input-bg);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

textarea {
    border-radius: 15px; /* Less rounded for textarea */
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
}

/* Custom Select Arrow */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 10px;
    pointer-events: none;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff; /* To cover the arrow behind if generic */
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.terms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}


.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.checkbox-wrapper input[type="checkbox"] {
    min-width: 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-wrapper label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-wrapper a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(90deg, #8A63F2 0%, #5D3FD3 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(93, 63, 211, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(93, 63, 211, 0.4);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

.success-message h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-message p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Legal Page Styles - Matching P360 Clean Look */
.legal-wrapper {
    padding: 60px 0;
    background-color: #fcfcfc; /* Subtle off-white background */
    min-height: 100vh;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 80px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.legal-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--legal-heading-color);
    margin-bottom: 10px;
    text-align: left;
}

.legal-updated {
    font-size: 14px;
    color: #666;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    display: block;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--legal-heading-color);
    margin-top: 40px;
    margin-bottom: 15px;
    padding-left: 0;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--legal-text-color);
    margin-bottom: 20px;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    font-size: 16px;
    color: var(--legal-text-color);
    line-height: 1.7;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 40px 20px;
    }
    
    .legal-title {
        font-size: 28px;
    }
}
