
/* Formation Image */
.formation-image {
    position: relative;
    width: 100%;
    margin: 0 auto;
  }
  
  .formation-image-text {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 2em;
    border-radius: 7px;
  }
  
  #companyName {
    width: 40em;
    height: 4em;
    border-radius: 7px;
    text-align: center;
    margin: 1em;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  
  .checker {
      width: 60%;
  }
  
  .checker1 {
      margin: auto;
    text-align: center;
  }
  
  @media screen and (max-width: 768px) {
    .formation-image-text {
      position: static;
      transform: none;
      background: none;
      color: #000;
      padding: 1em 0;
      width: 100%;
      text-align: center;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
  
    .formation-image-text p,
    .formation-image-text input,
    .formation-image-text .checker1 {
      width: 100%;
      text-align: center;
      margin: 0.5em 0;
    }
  
    .formation-image-text input {
      box-sizing: border-box;
      padding: 0.5em;
    }
  
    .formation-image {
      margin-top: 5em;
      margin-bottom: 2em;
    }
  
    .formation-image img {
      display: none;
    }
  
    #companyName {
      width: 80%;
    }
  }

fieldset.titlebox legend {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid #ccc;
  display: inline-block;
  background-color: #f8f8f8;
  border-radius: 6px;
}

.search-box {
    width: 30%;
    margin-left: auto;
    margin-right: auto;
    height: 4rem;
    margin-bottom: 3rem;
}

.company-name-large {
    width: 100%;
    height: 4rem;
    padding: 0.75rem 1rem;
}

#companySearchForm {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

#companyName {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.form-box {
    display: flex;
    flex-direction: column;
    align-items: left;
    width: 50%;
    padding: 1em;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
  .form-box {
    width: 100%;
    padding: 1rem;
    align-items: center; 
  }

  .search-box {
    align-items: center; 
    width: 100%;

  }

  .appform {
    padding: 1rem;
  }

  .appform input,
  .appform textarea {
    font-size: 1rem;
  }
}

.titlebox {
    text-align: center;
    margin: 1.5rem 0;
}

.appform {
    background-color: rgb(251, 244, 244)
    opacity: 0.9;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.appform label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.appform input {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
    height: 2.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    font-size: 1rem;
}

.boxes {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

.box1, .box2 {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    margin: 0.5rem 0;
    padding: 1rem;
}

.box2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.director, .secretary, .shareholder {
  padding: 2em;
}

.name {
    width: 40%;
}

#shareValue, #shareNumber {
  width: 100px;
}

.primary-btn, .action-btn {
    display: inline-block;
    min-width: 8rem;
    height: 2.5rem;
    line-height: 2.5rem;
    padding: 0 1rem;
    border-radius: 8px;
    background-color: #292929;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    touch-action: manipulation;
  	margin: 1em;
}

.primary-btn:hover, .action-btn:hover {
    background-color: #686767;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .boxes {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 1200px;
    }

    .box1, .box2 {
        flex: 1;
        min-width: 300px;
        margin: 1rem;
    }
  
    .table {
        max-width: 1200px;
    }

    table td, table th {
        font-size: 1rem;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .primary-btn, .action-btn {
        height: 3rem;
        line-height: 3rem;
        font-size: 0.9rem;
        margin-left: auto;
        margin-right: auto;
    }

    .appform {
        padding: 1rem;
    }

    .appform input {
        height: 2.75rem;
    }
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 15px;
}

.error-message {
    color: red;
    margin: 1rem 0;
    font-size: 1rem;
}

.logo-preview {
    margin: 1rem 0;
    text-align: center;
}

.appform textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    resize: vertical;
}

.item-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.item-row input,
.item-row span {
    flex: 1;
    min-width: 100px;
}

.item-row button {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .item-row {
        flex-direction: column;
        align-items: stretch;
    }

    .item-row input,
    .item-row span {
        min-width: 100%;
    }
}

.terms-container {
    margin: 5px 0;
    font-size: 14px;
    display: flex;
    align-items: left;
}

.terms-container input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    transform: scale(0.6); /* Slightly scale down for finer appearance */
}

.terms-container label {
    display: flex;
    align-items: left;
    font-size: 12px;
    line-height: 1.2;
    margin: 0;
}

.terms-container a {
    color: #007bff;
    text-decoration: underline;
    margin-left: 2px;
    margin-right: 2px;
}

.terms-container a:hover {
    color: #0056b3;
}

.terms-container .required {
    color: red;
    font-size: 12px;
    margin-left: 2px;
    line-height: 1.2;
}
   
#sicResults {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 6px;
  background: white;
  position: absolute;
  z-index: 10;
  width: auto;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#sicResults li {
  padding: 8px 12px;
  cursor: pointer;
}

#sicResults li:hover {
  background-color: #f0f0f0;
}

.selectedSICs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  margin: 4px 0;
  margin-bottom: 5px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* By default, input takes 15% width (for wide screens) */
input[type="date"] {
    width: 15%;
    min-width: 120px;   /* optional, prevents too small on desktop */
}

/* On screens up to 600px wide, input takes full width */
@media (max-width: 600px) {
    input[type="date"] {
        width: 100%;
        min-width: 0;
    }
}
