/* ================================
   KONKURS SECTION STYLES
   ================================ */

.konkurs-section {
  margin: 0 auto;
  padding: 2rem 7%;
}

.konkurs-container {
  max-width: 900px;
  margin: 50px auto 100px auto;
}

.konkurs__hero-image-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 85px auto auto auto auto;
  margin-bottom: 100px;
  border-radius: 45px;
  border: 9px solid white;
  background: linear-gradient(135deg, #5ca378 0%, #3b7c98 100%);
}
.konkurs-belt__container {
  display: flex;
  padding: 20px 30px 15px 20px;
  gap: 10px;
  border-bottom: 9px solid white;
  width: 100%;
  grid-column: 1 / 3;
  justify-content: space-between;
}

.konkurs__hero-image-belt {
  max-width: 100%;
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  z-index: -1;
}
.konkurs__dot-container {
  display: flex;
  gap: 15px;
  align-items: center;
}

.konkurs__dot {
  background-color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.konkurs__image-top {
  width: 70%;
  grid-row: 2 / 3;
  grid-column: 1 / 3;
  justify-self: center;
  padding-top: 20px;
}

.konkurs-container__text-main {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  padding: 40px 6% 0px 4%;
  text-align: justify;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
}

.konkurs-container__text-main p {
  margin: 15px 0;
}

.konkurs-container__text-main strong {
  color: #ffd700;
  font-weight: bold;
}

.konkurs-container__text-sec {
  padding: 20px 4% 0px 8%;
  text-align: justify;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  grid-column: 1 / 2;
  grid-row: 4 / 5;
}

.konkurs-container__text-sec p {
  margin: 10px 0;
}
.konkurs__image-bott-right {
  grid-column: 2 / 3;
  grid-row: 4 / 6;
  max-width: 100%;
  place-self: end;
  margin-right: -15%;
  margin-bottom: -3px;
}

.konkurs__image-bott-left {
  grid-column: 1 / 2;
  grid-row: 5 / 6;
  width: 100%;
  max-width: 60%;
  padding: 0 0 5% 15%;
  place-self: start;
}

/* Belt Image */
.konkurs-belt {
  margin-bottom: 40px;
  text-align: center;
}

.konkurs-belt__image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  width: 100%;
}

/* Wojewodztwo and Category Selectors */
.konkurs-selector {
  margin-bottom: 40px;
  max-width: 730px;
  justify-self: center;
  width: 100%;
}

.konkurs-selector__title {
  color: #ffffff;
  font-size: 50px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 1);
}

.konkurs-selector__dropdown {
  width: 100%;
  padding: 20px;
  font-size: 18px;
  border: 6px solid #ffffff;
  border-radius: 25px;
  background: linear-gradient(135deg, #5ca378 0%, #3b7c98 100%);
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}

.konkurs-selector__dropdown:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.konkurs-selector__dropdown option {
  background: #3b7c98;
  color: #ffffff;
  padding: 10px;
}

/* Category Cards */
.konkurs-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.konkurs-category-card {
  background: linear-gradient(135deg, #5ca378 0%, #3b7c98 100%);
  border: 6px solid #ffffff;
  border-radius: 25px;
  padding: 10px 25px;
  display: flex;
  align-items: center;
  gap: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.konkurs-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.konkurs-category-card__number {
  font-size: 100px;
  font-weight: 600;
  color: #ffffff;
  min-width: 120px;
  text-align: center;
  border-right: 5px solid white;
  padding-right: 25px;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 1);
}

.konkurs-category-card__content {
  flex: 1;
  text-align: center;
}

.konkurs-category-card__title {
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
  line-height: 1.3;
}

.konkurs-category-card__description {
  font-size: 16px;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.konkurs-category-card__age-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 8px 0 0 0;
  line-height: 1.5;
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 10px;
}

/* Form Styles */
.konkurs-form {
  background: linear-gradient(135deg, #5ca378 0%, #3b7c98 100%);
  border: 6px solid #ffffff;
  border-radius: 25px;
  padding: 40px;
  margin-bottom: 40px;
}

.konkurs-form__header {
  margin-bottom: 30px;
  text-align: center;
}

.konkurs-form__title {
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
}

.konkurs-form__group {
  margin-bottom: 20px;
}

.konkurs-form__group-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.konkurs-form__group--half {
  flex: 1;
  margin-bottom: 0;
}

.konkurs-form__label {
  display: block;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.konkurs-form__input {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 2px solid #ffffff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.konkurs-form__input:focus {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

input.konkurs-form__input[readonly] {
  background: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
}

.konkurs-form__file-input {
  width: 100%;
  padding: 15px;
  font-size: 14px;
  border: 2px dashed #ffffff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.konkurs-form__file-input:hover {
  background: rgba(255, 255, 255, 0.2);
}

.konkurs-form__file-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin: 5px 0 0 0;
  font-style: italic;
}

.konkurs-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.konkurs-form__checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.konkurs-form__link {
  color: #ffd700;
  text-decoration: underline;
  cursor: pointer;
}

.konkurs-form__link:hover {
  color: #fff;
}

.konkurs-form__download-link {
  color: #ffd700;
  text-decoration: none;
  font-size: 14px;
  margin-left: 5px;
}

.konkurs-form__download-link:hover {
  text-decoration: underline;
}

.konkurs-form__info {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  color: #ffffff;
}

.konkurs-form__info p {
  margin: 10px 0;
  line-height: 1.6;
}

.konkurs-form__note {
  font-style: italic;
  font-size: 14px;
  opacity: 0.9;
}

.konkurs-form__submit {
  width: 100%;
  padding: 20px;
  font-size: 20px;
  font-weight: bold;
  color: #2e5fa3;
  background: #ffffff;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 20px;
}

.konkurs-form__submit:hover {
  background: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.konkurs-form__submit:active {
  transform: translateY(0);
}

.konkurs-form__submit:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
}

/* Regulamin Modal */
.konkurs-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.konkurs-modal__content {
  background: #ffffff;
  border-radius: 15px;
  padding: 40px;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.konkurs-modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.konkurs-modal__close:hover {
  color: #000;
}

.konkurs-modal__content h2 {
  color: #2e5fa3;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 28px;
}

.konkurs-modal__text {
  color: #333;
  line-height: 1.8;
  margin-bottom: 30px;
}

.konkurs-modal__text p {
  margin: 15px 0;
}

.konkurs-modal__text-scrollable {
  max-height: 400px;
  overflow-y: auto;
  color: #333;
  line-height: 1.8;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
}

.konkurs-modal__text-scrollable p {
  margin: 15px 0;
}

.konkurs-modal__text-scrollable::-webkit-scrollbar {
  width: 10px;
}

.konkurs-modal__text-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.konkurs-modal__text-scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.konkurs-modal__text-scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.konkurs-modal__buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.konkurs-modal__button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(135deg, #5ca378 0%, #3b7c98 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.konkurs-modal__button--download {
  background: linear-gradient(135deg, #3b7c98 0%, #2e5fa3 100%);
}

.konkurs-modal__button--accept {
  background: linear-gradient(135deg, #5ca378 0%, #3b7c98 100%);
}

.konkurs-modal__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Error Messages */
.konkurs-form__error {
  display: none;
  color: #ff4444;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 5px;
  font-weight: 600;
  line-height: 1.4;
  background: rgba(255, 68, 68, 0.1);
  padding: 8px 12px;
  border-radius: 5px;
  border-left: 3px solid #ff4444;
}

.konkurs-form__error--error {
  color: #ff4444;
}

.konkurs-form__error--warning {
  color: #ffa500;
}

.konkurs-form__input--error {
  border-color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.1) !important;
}

.konkurs-form__input--warning {
  border-color: #ffa500 !important;
  background: rgba(255, 165, 0, 0.1) !important;
}

/* Error Banner */
.konkurs-error-banner {
  display: none;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.konkurs-error-banner__content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.konkurs-error-banner__icon {
  font-size: 28px;
  flex-shrink: 0;
}

.konkurs-error-banner__text {
  color: #856404;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

/* Success Message */
.konkurs-success {
  background: #4caf50;
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
}

/* Loading State */
.konkurs-form__loading {
  text-align: center;
  padding: 20px;
  color: #ffffff;
  font-size: 18px;
}
.banner-divide {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #5ca378 0%, #3b7c98 100%);
  margin-bottom: 100px;
}

.banner-divide__text {
  color: #ffffff;
  font-size: 50px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 1);
}

#regulaminModalContent ul li {
  margin-left: 17px;
}

/* Responsive Design */

/* Tablet - Medium screens */
@media (max-width: 1024px) and (min-width: 600px) {
  .konkurs-container__text-main {
    padding: 35px 5% 0px 3%;
    font-size: 15px;
  }

  .konkurs-container__text-sec {
    padding: 18px 3% 0 6%;
    font-size: 14px;
  }

  .konkurs-selector__title {
    font-size: 28px;
  }

  .konkurs-category-card__title {
    font-size: 24px;
  }

  .konkurs-category-card__description {
    font-size: 14px;
  }
}

/* Mobile - Small screens */
@media (max-width: 600px) {
  .konkurs__hero-image-container {
    margin-bottom: 50px;
  }

  .konkurs-belt {
    width: 116%;
    place-self: center;
  }

  .konkurs__hero-image-container {
    grid-template-rows: 55px auto auto auto auto;
    border-radius: 30px;
    border: 6px solid white;
  }
  .konkurs-container {
    margin: 20px auto 50px auto;
  }
  .banner-divide {
    margin-bottom: 50px;
  }

  .konkurs__dot {
    width: 24px;
    height: 24px;
  }
  .konkurs-belt__container {
    border-bottom: 6px solid white;
    padding: 15px 20px 10px 15px;
  }

  .konkurs-section {
    padding-top: 0px;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .konkurs-container__text-main {
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .konkurs-container__text-main p {
    margin: 5px 0;
  }

  .konkurs-container__text-sec {
    font-size: 12px;
  }

  .konkurs-selector__title {
    font-size: 24px;
  }

  .konkurs-category-card {
    flex-direction: column;
    text-align: center;
  }

  .konkurs-category-card__number {
    border-right: none;
    border-bottom: 3px solid rgba(255, 255, 255, 0.5);
    padding-right: 0;

    min-width: auto;
  }

  .konkurs-form {
    padding: 25px 20px;
  }

  .konkurs-form__title {
    font-size: 24px;
  }

  .konkurs-form__group-row {
    flex-direction: column;
    gap: 0;
  }

  .konkurs-form__group--half {
    margin-bottom: 20px;
  }

  .konkurs-modal__content {
    margin: 20px;
    padding: 25px;
    max-width: 90%;
  }
}

/* Hide/Show Helpers */
.konkurs-hidden {
  display: none !important;
}

.konkurs-visible {
  display: block !important;
}

@media screen and (max-width: 500px) {
  .konkurs-container__text-main {
    padding-top: 15px;
    font-size: 10px;
  }

  .konkurs-container__text-main p,
  .konkurs-container__text-sec p {
    margin: 0;
  }

  .konkurs-container__text-sec {
    font-size: 10px;
  }
  .banner-divide__text {
    font-size: 24px;
  }
}

@media screen and (max-width: 400px) {
  .konkurs-container__text-main,
  .konkurs-container__text-sec {
    line-height: 1.3;
  }
}

@media screen and (max-width: 350px) {
  .konkurs-container__text-main,
  .konkurs-container__text-sec {
    font-size: 8px;
  }
}

/* Animation for form appearance */
@keyframes konkursSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.konkurs-form__category,
.konkurs-form__common {
  animation: konkursSlideIn 0.5s ease;
}
