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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #f3f4f6, #d8b4fe);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #333;
}

.page-container {
  width: 100%;
  max-width: 900px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 2rem;
}

.title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #6d28d9;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label,
.preview-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

input, select, textarea {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139,92,246,0.2);
}

textarea {
  resize: none;
  background: #f9fafb;
  cursor: pointer;
}

.preview-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-size: 1.25rem;
}

.preview-box img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.btn-primary {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #7c3aed;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #6d28d9;
}

.text-center {
  text-align: center;
}


.col-span-2 {
  grid-column: span 2;
}
.selectTemplate
{
  width: 200%;
  height: 200px;
  border: 2px solid red;
}
.optionsImage
{
  border: 2px solid green;
}
.preview-box-header
{
  display: flex;
  flex-direction: row;
}
.generatePreview
{
  background-color: #7c3aed;
  color: #f3edfd;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin: 20px;
  margin-left: auto;
}
.generatePreview:hover {
  background: #6d28d9;
  
}
.checkbox-container {
  margin: 20px;
  font-size: 18px;
}
input[type="checkbox"] {
  transform: scale(1.3);
  margin-right: 8px;
  cursor: pointer;
}