/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f5 100%);
    padding: 20px;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .container {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 28px 22px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.4s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: #111;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  input[type="text"],
  input[type="tel"],
  input[type="file"] {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    transition: border 0.2s, box-shadow 0.2s;
  }
  
  input:focus {
    outline: none;
    border-color: #00889c;
    box-shadow: 0 0 0 3px rgba(229, 0, 125, 0.15);
  }
  
  input[type="file"] {
    background: #fafafa;
  }
  
  .consent {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
  }
  
  .consent input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
  }
  
  button {
    background: #00889c;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s, transform 0.1s;
  }
  
  button:hover {
    background: #007a8c;
  }
  
  button:active {
    transform: scale(0.98);
  }
  
  button:disabled {
    background: #aaa;
    cursor: not-allowed;
  }
  
  .note {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 14px;
  }
  
  .upload-label {
    display: inline-block;
    background: #00889c;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
  }
  .upload-label:hover {
    background: #007a8c;
  }
  .upload-label:active {
    transform: scale(0.98);
  }
  
  .file-name {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    text-align: center;
  }
  
  .preview {
    margin-top: 12px;
    text-align: center;
  }
  
  .preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
    margin-top: 8px;
  }
  
  .secondary {
    background: #f0f0f3;
    color: #111;
    border: 1px solid #ddd;
    margin-top: 6px;
  }
  
  .preview {
    margin-top: 12px;
    text-align: center;
  }
  .preview img {
    max-width: 100%;
    max-height: 260px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    object-fit: cover;
    margin-top: 8px;
  }
  
  #previewActions button {
    background: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  #previewActions button:hover {
    background: #eee;
  }
  
  .crop-hint {
    margin-top: 0.5em;
    font-size: 0.95em;
    color: #666;
    text-align: center;
    font-style: italic;
  }
  
  
  .loader {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 1em;
  }
  
  .loader span {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #e5007d;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
  }
  
  .loader span:nth-child(1) {
    animation-delay: -0.32s;
  }
  .loader span:nth-child(2) {
    animation-delay: -0.16s;
  }
  
  @keyframes bounce {
    0%, 80%, 100% {
      transform: scale(0);
    }
    40% {
      transform: scale(1);
    }
  }
  
  .logo {
    width: 120px;   /* juster etter behov */
    height: auto;
    display: block; /* nyttig hvis du vil sentrere */
    margin: 0 auto; /* midt på siden */
    margin-bottom: 20px;
  }