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

body {
    font-family: 'Noto Sans', serif;
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e3da 100%);
    color: #2c1810;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fefcf8;
    border: 8px solid #8b4513;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid #d4af37;
    border-radius: 12px;
    pointer-events: none;
}

.container::after {
    content: '';
    position: absolute;
    top: 35px;
    left: 35px;
    right: 35px;
    bottom: 35px;
    border: 1px solid #cd853f;
    border-radius: 8px;
    pointer-events: none;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #8b4513;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-family: serif;
}

.header p {
    font-size: 1.2rem;
    color: #5d4037;
    font-style: italic;
}

.main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.form-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: inset 0 2px 8px rgba(139, 69, 19, 0.1);
    border: 2px solid #d4af37;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #5d4037;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #cd853f;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.input-group input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.declarations-section h3 {
    margin-bottom: 20px;
    color: #5d4037;
    font-weight: 600;
    font-size: 1.3rem;
}

.declaration-item {
    margin-bottom: 15px;
}

.declaration-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #cd853f;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.declaration-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.generate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.generate-btn:hover {
    background: linear-gradient(135deg, #b8941f 0%, #9a7b1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.result-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #d4af37;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.2);
    position: relative;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid #cd853f;
    border-radius: 10px;
    pointer-events: none;
}

.result-section h3 {
    margin-bottom: 20px;
    color: #5d4037;
    font-weight: 600;
    font-size: 1.3rem;
    text-align: center;
}

.declaration-output {
    background: rgba(248, 245, 240, 0.8);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #d4af37;
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-line;
    margin-bottom: 20px;
    min-height: 200px;
    font-family: serif;
    color: #2c1810;
    text-align: left;
    box-shadow: inset 0 2px 8px rgba(139, 69, 19, 0.1);
}

.declaration-output .title {
    text-align: center;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.copy-btn,
.download-btn {
    padding: 12px 25px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3);
}

.copy-btn {
    background: linear-gradient(135deg, #8b4513 0%, #5d4037 100%);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #5d4037 0%, #3e2723 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
}

.download-btn {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.download-btn:hover {
    background: linear-gradient(135deg, #1e8449 0%, #145a32 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        border-width: 6px;
    }
    
    .main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .form-section,
    .result-section {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .copy-btn,
    .download-btn {
        width: 100%;
    }
}