/* submit-old.css */
@import url('/tailwind.css');
@import url('/app/global.css');

.custom-link {
    background-color: #000;
    color: #fff !important;
    padding: 4px 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    
    /* Remove all browser default outlines and borders */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

body {
    background-color: #eeeeee !important;
}

body::before {
    display: none !important;
}

/* Google Form responsive container */
.form-container {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.form-iframe {
    width: 100vw !important;
    min-height: 100vh !important;
    border: none !important;
}

/* Responsive adjustments */
/* @media (max-width: 768px) {
    .form-iframe {
        min-height: 800px;
    }
    
    .form-container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .form-iframe {
        min-height: 900px;
    }
} */

/* Loading state */
.form-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    color: #6b7280;
    font-size: 1.125rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}








/* submit-old.php Responsive Design */

/* Desktop | 1281px - 1440px  */
@media (max-width: 1280px) {
  /* None, coded on macbook m1 pro */
}

/* Medium Laptop/Desktop | 1515px - 1920px */
@media (max-width: 1515px) {
 /* None, coded on macbook m1 pro */
}

/* Small Laptop/Desktop | 1024px - 1280px */
@media (max-width: 1024px) {
  .form-container {
    padding: 0.5rem !important;
    overflow-x: hidden;
  }
}

/* Mobile Small Portrait (Normal) | up to 480px */
/* S20+, iPhone 12, iPhone 13 */
@media (max-width: 480px) and (orientation: portrait) {
  .form-container {
    padding: 0.25rem !important;
    overflow-x: hidden;
  }
  
  .form-loading {
    font-size: 1rem;
    min-height: 300px;
  }
  
  .spinner {
    width: 30px;
    height: 30px;
    margin-right: 8px;
  }

  .custom-link {
    font-size: .85rem;
  }

  .font-bold {
    margin-top: 1.5rem;
  }
}

/* Mobile Small Landscape (Seitlich gehlaten) | up to 950px */
/* S20+, iPhone 14, iPhone 15 Pro in Landscape (Seitlich gehlaten) */
@media (max-width: 950px) and (orientation: landscape) {
  .form-container {
    padding: 0.5rem !important;
    overflow-x: hidden;
  }

  .font-bold {
    margin-top: -3rem;
  }
}

/* Mobile Large Portrait (Normal) | 481px - 600px */
/* iPhone 14 Pro Max, Pixel 7 Pro, larger phones */
@media (min-width: 481px) and (max-width: 600px) and (orientation: portrait) {
  .form-container {
    padding: 0.25rem !important;
    overflow-x: hidden;
  }
  
  .form-loading {
    font-size: 1rem;
    min-height: 350px;
  }
}

/* Tablet Portrait (Normal) | 601px - 1024px */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
  .form-container {
    padding: 0.75rem !important;
    overflow-x: hidden;
  }
}

/* Tablet Landscape (Seitlich gehlaten) | 951px - 1366px */
@media (min-width: 951px) and (max-width: 1366px) and (orientation: landscape) {
  .form-container {
    padding: 1rem !important;
    overflow-x: hidden;
  }
}