@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f5f3ef;
    color: #002B6D;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-tint {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 43, 109, 0.70);
}

.form-wrapper {
    min-height: 100vh;
    padding: 48px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.lytegen-card {
    background-color: #fdfaf4;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    padding: 40px;
}

@media (max-width: 768px) {
    .lytegen-card {
        padding: 24px;
    }
    .form-wrapper {
        padding: 24px 16px;
    }
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.lytegen-page-title {
    font-size: 40px;
    font-weight: 700;
    color: #002B6D;
    line-height: 1.2;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .lytegen-page-title {
        font-size: 28px;
    }
}

.required-note {
    font-size: 14px;
    color: #6b7280;
}

.asterisk {
    color: #ef4444;
}

.form-section {
    margin-bottom: 32px;
}

.lytegen-section-header {
    font-size: 18px;
    font-weight: 600;
    color: #002B6D;
    border-bottom: 1px solid rgba(12, 1, 1, 0.1);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.lytegen-label {
    font-size: 14px;
    font-weight: 500;
    color: #002B6D;
    display: block;
    margin-bottom: 6px;
}

.required-asterisk::after {
    content: '*';
    margin-left: 2px;
    color: #ef4444;
}

.lytegen-input {
    background-color: #fffefb;
    border: 1px solid rgba(12, 1, 1, 0.2);
    border-radius: 6px;
    height: 36px;
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s;
    font-family: inherit;
    color: #002B6D;
}

.lytegen-input:focus {
    outline: none;
    border-color: #002B6D;
    box-shadow: 0 0 0 3px rgba(0, 43, 109, 0.15);
}

.lytegen-input::placeholder {
    color: #9ca3af;
}

select.lytegen-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23002B6D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.error-message {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 16px;
}

.lytegen-radio-group {
    display: flex;
    gap: 12px;
}

.lytegen-radio-option {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid rgba(12, 1, 1, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #fffefb;
    font-size: 14px;
    font-weight: 500;
}

.lytegen-radio-option:hover {
    border-color: #002B6D;
}

.lytegen-radio-option.selected {
    background-color: #002B6D;
    color: white;
    border-color: #002B6D;
}

.battery-details {
    animation: fadeIn 0.3s ease-out;
    padding: 16px;
    border-radius: 8px;
    background-color: rgba(0, 43, 109, 0.03);
    margin-top: 16px;
}

.battery-details-title {
    font-size: 14px;
    font-weight: 600;
    color: #002B6D;
    margin-bottom: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-upload-wrapper {
    position: relative;
}

.lytegen-file-upload {
    border: 2px dashed rgba(12, 1, 1, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #fffefb;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
}

.lytegen-file-upload:hover {
    border-color: #002B6D;
    background-color: rgba(0, 43, 109, 0.02);
}

.hidden-input {
    display: none;
}

.upload-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    color: #6b7280;
}

.upload-text {
    color: #6b7280;
    font-size: 14px;
}

.upload-hint {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 4px;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    background-color: #fffefb;
    border: 1px solid rgba(12, 1, 1, 0.2);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #002B6D;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: #6b7280;
}

.remove-file-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.remove-file-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.remove-file-btn svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.form-actions {
    margin-top: 32px;
}

.submit-button {
    width: 100%;
    height: 48px;
    background-color: #002B6D;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.submit-button:hover {
    background-color: #001d4a;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.spinner-circle {
    stroke-dasharray: 31.4;
    stroke-dashoffset: 10;
}

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

.success-card {
    max-width: 480px;
    text-align: center;
    padding: 40px;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background-color: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon {
    width: 40px;
    height: 40px;
    color: #16a34a;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #002B6D;
    margin-bottom: 16px;
}

.success-message {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    background-color: #002B6D;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.download-button:hover {
    background-color: #001d4a;
}

.new-proposal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    background-color: transparent;
    color: #002B6D;
    border: 2px solid #002B6D;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.new-proposal-button:hover {
    background-color: rgba(0, 43, 109, 0.05);
}

.button-icon {
    width: 20px;
    height: 20px;
}

.input-error {
    border-color: #ef4444 !important;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background-color: #002B6D;
    color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.toast.error {
    background-color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .lytegen-radio-group {
        flex-direction: column;
    }
    
    .lytegen-radio-option {
        justify-content: center;
    }
}
