/* Main container */
.zero-block-container {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center the content */
  align-items: center; /* Horizontally center the content */
  padding: 40px 20px;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh; /* Full height of the viewport */
  text-align: center;
  overflow: hidden; /* Prevent overflow */
}

/* Header styling */
.zero-block-container .review-header {
  max-width: 640px;
  margin-bottom: 20px;
}

.zero-block-container .review-header h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 12px;
}

.zero-block-container .review-header p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  color: #333;
}

/* Widget container */
.zero-block-container .shapo-wrapper {
  width: 100%;
  min-height: 400px; /* Reduced min-height for better responsiveness */
  position: relative;
}

/* Responsive styles for tablet screens */
@media (max-width: 768px) {
  .zero-block-container {
    padding: 20px 16px 30px; /* Reduced top padding */
    min-height: auto; /* Allow content to flow naturally */
  }

  .zero-block-container .review-header h2 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .zero-block-container .review-header p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .zero-block-container .shapo-wrapper {
    min-height: 350px;
  }
}

/* Responsive styles for mobile screens */
@media (max-width: 480px) {
  .zero-block-container {
    padding: 15px 12px 20px; /* Reduced top padding */
    min-height: auto; /* Allow content to flow naturally */
  }

  .zero-block-container .review-header h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .zero-block-container .review-header p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .zero-block-container .shapo-wrapper {
    min-height: 300px;
  }
}

/* Explicit centering for iPad Pro 1024x1366 */
@media (min-width: 1024px) and (max-width: 1366px) {
  .zero-block-container {
    padding: 40px 20px;
    min-height: 100vh; /* Ensure full height on larger screens */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    align-items: center; /* Horizontally center content */
    margin-top: 0; /* Remove any default margin */
    margin-bottom: 0; /* Remove any default margin */
  }

  .zero-block-container .review-header h2 {
    font-size: 56px;
    margin-bottom: 20px;
  }

  .zero-block-container .review-header p {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .zero-block-container .shapo-wrapper {
    min-height: 600px; /* Adjust widget height for larger screens */
  }
}
