/* Base Styles */
:root {
    --primary-color: #1a73e8;
    --primary-hover: #1557b0;
    --error-color: #d32f2f;
    --border-radius: 8px;
    --card-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 0;
    margin: 0;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
    gap: 8px;
}

.btn .material-icons {
    font-size: 1.2em;
    line-height: 1;
}

.btn:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin: 0 auto 2rem;
    max-width: 800px;
    width: 100%;
}

.form-section {
    margin-bottom: 2rem;
}

/* Add extra space before Invoice Upload section */
.form-section:has(h2.section-title:contains("Invoice Upload")) {
    margin-top: 2.5rem;  /* Extra space above the section */
    padding-top: 1.5rem;  /* Space inside the section */
    border-top: 1px solid #eee;  /* Optional: adds a subtle line */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Custom Select */
.select-group {
    position: relative;
    width: 100%;
}

.select-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%;
    background-size: 1em auto;
    padding-right: 2.5em;
}

/* Remove default arrow in IE */
.select-group select::-ms-expand {
    display: none;
}

.select-group::after {
    content: '▼';
    font-size: 0.7rem;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #555;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0;
}

.radio-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* File Upload */
.file-upload {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.file-upload.dragover {
    border-color: var(--primary-color);
    background-color: #e8f0fe;
}

.file-upload i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

/* Drag and Drop Styles */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #f9f9f9;
    margin: 1rem 0;
}

.drop-zone--over {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.drop-zone--over .drop-zone-text,
.drop-zone--over .material-icons {
    color: #2E7D32;
}

.drop-zone__input {
    display: none;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.drop-zone-text {
    color: #666;
    font-size: 1rem;
}

.drop-zone i.material-icons {
    font-size: 3rem;
    color: #4CAF50;
}

/* Style for when file is selected */
.file-upload.has-file .drop-zone {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

/* Error state */
.file-upload.has-error .drop-zone {
    border-color: #f44336;
    background-color: #ffebee;
}

/* Hover state */
.drop-zone:hover {
    border-color: #999;
}

/* Focus state */
.drop-zone:focus-within {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Error States */
.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

input.error,
select.error,
textarea.error,
.file-upload.error {
    border-color: var(--error-color) !important;
}

.success-message {
    background-color: #e6f4ea;
    color: #137333;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.success-message i {
    margin-right: 12px;
    font-size: 24px;
}

/* Hero Section */
.hero {
    margin: 2rem 0;
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.hero-content {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #202124;
}

.hero p {
    font-size: 1.1rem;
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Steps Section */
.steps-section {
    margin: 2rem 0;
    text-align: center;
}

.section-subtitle {
    color: #5f6368;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    background: transparent;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1rem;
}

.step-content {
    flex: 1;
}

.step h3 {
    margin: 0 0 0.5rem 0;
    color: #202124;
    font-size: 1.1rem;
}

.step p {
    margin: 0;
    color: #5f6368;
    line-height: 1.5;
    font-size: 0.95rem;
}

.step-divider {
    height: 20px;
    width: 2px;
    background: #e0e0e0;
    margin: 0 auto 0 14px;
    position: relative;
    left: 14px;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin: 0 auto 2rem;
    max-width: 800px;
    width: 100%;
}

.faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 500;
    font-size: 1.1rem;
    color: #202124;
    margin: 0 0 0.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: #5f6368;
    line-height: 1.6;
    margin: 0;
    padding-top: 0.5rem;
}

.contact-support {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .step {
        flex-direction: row;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .step-number {
        margin: 0 1rem 0 0;
    }
    
    .step-divider {
        height: 10px;
        width: 100%;
        margin: 0;
        left: 0;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .faq-answer {
        font-size: 0.95rem;
    }
}
