* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* Navigation Styles */
.navigation {
    background-color: #11182A;
    padding: 0 30px;
    display: flex;
    gap: 0;
    border-bottom: 3px solid #FFCD00;
}

.nav-button {
    background: none;
    border: none;
    color: white;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-button:hover {
    background-color: rgba(255, 205, 0, 0.1);
}

.nav-button.active {
    background-color: #FFCD00;
    color: #11182A;
    border-bottom: 3px solid #FFCD00;
}

.auth-status {
    background-color: #11182A;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-button {
    background-color: #e31019;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.auth-button:hover {
    opacity: 0.8;
}

.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 18px;
    color: #666;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.header {
    width: 100%;
    min-height: 300px;
    padding: 0;
    background: linear-gradient(135deg, #11182A 0%, #1a2332 100%);
    color: whitesmoke;
    display: flex;
    flex-direction: column;
    position: relative;
}

.top-row {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    border-bottom: 3px solid #FFCD00;
    margin-left: 30px;
    padding-bottom: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    margin: 10px 0 0 0;
}

.logo-section > svg {
    width: 80px;
    margin: 0 25px 0 0;
}

.h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 56px;
    font-weight: bold;
}

.main-text {
    margin: 0 auto;
    font-size: 36px;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.lightbulb {
    height: 80px;
    width: 80px;
    margin: 0 10px;
}

.highlight-text {
    color: #FFCD00;
    font-weight: bold;
}

.text-row {
    margin-top: 25px;
    text-align: center;
}

.bottom-row {
    margin: auto auto 10px 0;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 80px;
}

.new-business-referrals {
    font-size: 60px;
    line-height: 60px;
    margin: 0 0 0 30px;
    font-family: Arial, Helvetica, sans-serif;
}

.page-title-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.page-title-image {
    height: 165px;
    width: 520px;
    object-fit: fill;
    object-position: center;
    margin-right: 100px;
    flex-shrink: 0;
}

.salesforce-form {
    width: calc(100vw - 250px);
    margin: 25px 125px 50px 125px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-columns {
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

.form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.label-layout {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.textarea-layout {
    align-items: flex-start;
}

.salesforce-form label {
    width: 280px;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 16px;
    margin-right: 20px;
}

.label-caption {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-style: italic;
    font-weight: normal;
    color: #666;
    display: block;
    margin-top: 3px;
}

.salesforce-form input,
.salesforce-form select,
.salesforce-form textarea {
    width: 300px;
    padding: 8px 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    border: 2px solid #424244;
    border-radius: 5px;
    background-color: white;
}

.salesforce-form input:focus,
.salesforce-form select:focus,
.salesforce-form textarea:focus {
    outline: none;
    border-color: #e31019;
    box-shadow: 0 0 5px rgba(227, 16, 25, 0.3);
}

.salesforce-form input[type="text"],
.salesforce-form input[type="email"] {
    height: 40px;
}

.salesforce-form select {
    height: 40px;
    cursor: pointer;
}

.salesforce-form select[multiple] {
    height: 180px;
    cursor: pointer;
}

.salesforce-form textarea {
    height: 120px;
    resize: vertical;
    font-family: Arial, Helvetica, sans-serif;
}

.submit-section {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.submit-button {
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 24px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    background-color: #e31019;
    color: whitesmoke;
    border: none;
    transition: all 0.3s ease;
}

.submit-button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.success-output {
    display: none;
    margin: 30px 125px;
    padding: 30px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    text-align: center;
    color: #155724;
}

.success-output h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.reset-button {
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    background-color: #e31019;
    color: whitesmoke;
    border: none;
    transition: all 0.3s ease;
}

.reset-button:hover {
    opacity: 0.8;
}

.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3) !important;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

@media (max-width: 1200px) {
    .salesforce-form {
        width: calc(100vw - 100px);
        margin: 25px 50px;
    }
    
    .form-columns {
        gap: 30px;
    }
    
    .salesforce-form label {
        width: 250px;
    }
    
    .salesforce-form input,
    .salesforce-form select,
    .salesforce-form textarea {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .form-columns {
        flex-direction: column;
        gap: 0;
    }
    
    .salesforce-form label {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .label-layout {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .salesforce-form input,
    .salesforce-form select,
    .salesforce-form textarea {
        width: 100%;
        max-width: 400px;
    }
    
    .main-text {
        font-size: 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .h2 {
        font-size: 36px;
    }
    
    .new-business-referrals {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .salesforce-form {
        width: calc(100vw - 40px);
        margin: 25px 20px;
        padding: 20px;
    }
    
    .header {
        min-height: 200px;
    }
    
    .top-row {
        margin-left: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bottom-row {
        margin: auto auto 15px 15px;
    }
    
    .logo-section > svg {
        width: 60px;
    }
    
    .h2 {
        font-size: 28px;
    }
    
    .main-text {
        font-size: 18px;
        margin: 15px 0;
    }
    
    .new-business-referrals {
        font-size: 24px;
        line-height: 28px;
    }
    
    .auth-status {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .auth-section {
        flex-direction: column;
        gap: 8px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-output.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e31019;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submitting .spinner {
    display: inline-block;
}
