/* ============================================
   RAPD QA MATURITY ASSESSMENT - MAIN STYLES
   Color Palette:
   - Orange: #f74d02
   - Green: #3e6c6a
   - Olive: #6F806D
   - Light Grey: #e5e4e0
   - White: #ffffff / #FEFEFE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #f74d02;
    --primary-green: #3e6c6a;
    --secondary-olive: #6F806D;
    --light-grey: #e5e4e0;
    --white: #ffffff;
    --off-white: #FEFEFE;
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --text-light: #95a5a6;
    --border-color: #dfe6e9;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 40px 20px 30px;
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-orange);
    margin-bottom: 40px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 120px;
    height: auto;
}

.header-text {
    color: var(--text-medium);
}

.client-tagline {
    font-size: 16px;
    font-style: italic;
}

.client-tagline span {
    color: var(--primary-green);
    font-weight: 600;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Intro Section */
.intro-section h1 {
    font-size: 42px;
    color: var(--primary-green);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.subtitle {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.info-box {
    background-color: var(--light-grey);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.info-item .icon {
    color: var(--primary-orange);
    flex-shrink: 0;
}

.features h2 {
    font-size: 24px;
    color: var(--primary-green);
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 18px;
}

/* Form Section */
.form-section {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 20px;
}

.form-container {
    padding: 40px;
}

.form-container h2 {
    font-size: 28px;
    color: var(--primary-green);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-description {
    color: var(--text-medium);
    margin-bottom: 32px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(247, 77, 2, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e04502;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-secondary:disabled {
    background-color: var(--light-grey);
    color: var(--text-light);
    border-color: var(--border-color);
    cursor: not-allowed;
}

.btn-icon {
    flex-shrink: 0;
}

.privacy-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-medium);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.privacy-icon {
    color: var(--primary-green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-medium);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner {
    border: 4px solid var(--light-grey);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Messages */
.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}

/* Success Messages */
.success-message {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .intro-section h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 18px;
    }

    .form-container {
        padding: 24px;
    }

    .form-container h2 {
        font-size: 24px;
    }
}

/* Accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .btn-primary,
    .btn-secondary,
    .footer {
        display: none;
    }
}
