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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f2f5fa 0%, #e8ecf1 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.form-section, .preview-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    grid-column: 1 / -1;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header img {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.header h1 {
    color: #262D2D;
    font-size: 32px;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 16px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #262D2D;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: #2F9C48;
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.helper-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-generate {
    background-color: #2F9C48;
    color: white;
}

.btn-generate:hover {
    background-color: #257a38;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 156, 72, 0.3);
}

.btn-copy {
    background-color: #00497c;
    color: white;
}

.btn-copy:hover {
    background-color: #003560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 73, 124, 0.3);
}

.btn-download {
    background-color: #2F9C48;
    color: white;
}

.btn-download:hover {
    background-color: #257a38;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 156, 72, 0.3);
}

.preview-section h2 {
    color: #262D2D;
    margin-bottom: 20px;
    font-size: 24px;
}

.preview-container {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
    height: 700px;
    overflow: hidden;
}

.preview-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    border-radius: 4px;
}

.success-message {
    background-color: #2F9C48;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
}

.required {
    color: #e74c3c;
}
