/* main card container */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
}


    .configurator-wrapper {
      max-width: 1400px;
      margin: 0 auto;
      background: rgba(255,255,255,0.7);
      border-radius: 3rem;
      backdrop-filter: blur(2px);
      padding: 3rem 1.5rem 1.5rem;
      box-shadow: 0 25px 45px -12px rgba(0,0,0,0.2);
	  margin-bottom: 80px;
    }

    #configurator {
/*       background: #ffffff; */
      border-radius: 2rem;
/*       padding: 2rem 2rem 2.5rem; */
/*       box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05); */
      transition: all 0.2s ease;
    }

    #configurator h1 {
      font-size: 1.9rem;
      font-weight: 700;
      background: linear-gradient(135deg, #1E3C5C, #2A5F8A);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-bottom: 1.8rem;
      letter-spacing: -0.3px;
      border-left: 5px solid #2A7FAA;
      padding-left: 1.2rem;
	  margin-bottom: 40px;
    }

    .section {
      margin-bottom: 2.5rem;
      border-bottom: 1px solid #e9edf2;
      padding-bottom: 1.5rem;
    }

    .section h3 {
      font-size: 1.3rem;
      font-weight: 600;
      color: #1e4663;
      margin-bottom: 1.2rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .section h3::before {
      content: "✦";
      font-size: 1.2rem;
      color: #2A7FAA;
    }

    /* options grid modern */
    .options {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      align-items: center;
    }

    .radio-card, .custom-card {
      background: #f8fafd;
      border: 1.5px solid #dfe5ef;
      border-radius: 2rem;
      padding: 0.6rem 1.4rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 1px 2px rgba(0,0,0,0.02);
      font-size: 0.9rem;
    }

    .radio-card.active, .custom-card.active {
      background: #1e4663;
      border-color: #1e4663;
      color: white;
      box-shadow: 0 6px 12px -8px rgba(30,70,99,0.4);
    }

    .radio-card input, .custom-card input {
      display: none;
    }

    .radio-content {
      display: inline-block;
    }

    /* credentials area: icon-style buttons */
    .credential-main-container {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      background: #fbfdff;
      padding: 1rem 0;
      border-radius: 1.5rem;
    }

    .credential-sub-container {
      flex: 1;
      min-width: 200px;
    }

    .options.credential-icons,.options.integration-management-container{
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      margin-top: 0.8rem;
    }

    .credential-btn {
		background: #f1f5f9;
		border-radius: 1.5rem;
		padding: 0.7rem 0.5rem;
		cursor: pointer;
		transition: all 0.2s;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 140px;
		border: 1.5px solid transparent;
		flex-direction: column;
		text-align: center;
	}
	.credential-btn p{
		font-size: 13px;
		line-height: 16px;
		margin-top: 10px;
		margin-bottom:0px;
	}

    .credential-btn img {
      width: 40px;
      height: 40px;
      object-fit: contain;
      filter: grayscale(0.2);
      transition: 0.2s;
    }

    .credential-btn img.active {
      filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)) brightness(1.05);
      transform: scale(1.02);
    }

    .credential-btn.active {
      background: #e9f0f9;
      border-color: #2A7FAA;
      box-shadow: 0 4px 12px rgba(42,127,170,0.2);
    }

    /* doors input */
    .door-container input {
      width: 220px;
      padding: 0.7rem 1rem;
      border-radius: 2rem;
      border: 1.5px solid #cfddee;
      font-size: 1rem;
      background: white;
      transition: 0.2s;
    }

    .door-container input:focus {
      border-color: #2A7FAA;
      outline: none;
      box-shadow: 0 0 0 3px rgba(42,127,170,0.2);
    }

    /* integration & management flex row */
    .integration-management-main-container {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      margin-top: 0.5rem;
    }

    .integration-management-container {
      background: #f9fbfe;
      border-radius: 1.5rem;
      padding: 1.2rem 1.5rem;
      flex: 1;
      box-shadow: 0 2px 6px rgba(0,0,0,0.02);
      border: 1px solid #eef2f8;
    }

    /* readers grid - premium cards */
    .options.readers-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
      gap: 1rem;
      margin-top: 1rem;
	  margin-bottom: 2rem;	
    }

    .option-btn.img-container {
      background: #ffffff;
      border-radius: 1.2rem;
      padding: 0.8rem 0.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      font-weight: 500;
      font-size: 0.8rem;
      text-align: center;
      border: 1px solid #e2e9f2;
      transition: all 0.2s;
      cursor: default;
      box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    }

    .option-btn.img-container img {
        width: 120px;
		height: 120px;
		object-fit: contain;
		background: #f8fafc;
		border-radius: 1rem;
    }

    .option-btn.img-container span {
      color: #1e3a5f;
      font-size: 0.8rem;
      font-weight: 500;
    }

    .info-message {
      background: #eef2fa;
      padding: 1rem;
      border-radius: 1.2rem;
      color: #2c5a7a;
      text-align: center;
      font-weight: 500;
    }

    /* panel selection */
    .options.panel-flex {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .credential-btn.disabled {
		opacity: .4;
		pointer-events: none;
		cursor: not-allowed;
		filter: grayscale(100%);
	}

    .panel-container {
      background: #f9fcff;
      border-radius: 1.6rem;
      padding: 0.8rem;
      transition: all 0.2s;
      cursor: pointer;
      border: 2px solid transparent;
      box-shadow: 0 8px 14px rgba(0,0,0,0.05);
	  text-align:center;
	  display: flex;
	  justify-content: center;
	  flex-direction: column;
	  align-items: center;
	  width: 24%;
    }

    .panel-container.active, .option-btn.img-container.active {
      border-color: #2A7FAA;
      background: #eef6fd;
      transform: scale(1.02);
      box-shadow: 0 18px 28px -12px rgba(42,127,170,0.3);
    }

    .panel-container img {
      border-radius: 1rem;
      max-width: 180px;
/*       width: 100%; */
/*       height: auto; */
      display: block;
    }
	.panel-container span{
		margin-top: 30px;
		display: block;
		font-weight: 500;
		text-transform: uppercase;
	}
	em {
    	font-size: 13px;
/*     	color: #2f8a0f; */
    	font-style: normal;
	}
	.panel-container em{
		font-size:13px;
		color: #2f8a0f;
	}

    button.submit-btn {
      background: linear-gradient(95deg, #1e4663, #2c628b);
      border: none;
      color: white;
      font-weight: 600;
      padding: 0.7rem 2rem;
      font-size: 1rem;
      border-radius: 3rem;
      cursor: pointer;
/*       margin-top: 2rem; */
      width: 100%;
      transition: all 0.2s ease;
      box-shadow: 0 5px 12px rgba(0,0,0,0.1);
      letter-spacing: 0.3px;
    }

    button.submit-btn:hover {
      background: linear-gradient(95deg, #123a56, #1f5579);
      transform: translateY(-2px);
      box-shadow: 0 12px 22px -10px rgba(0,0,0,0.2);
    }

	.tooltip-wrapper{
	  position: relative;
	  display: inline-flex;
	  align-items: center;
	  justify-content: center;
	}

	.tooltip-text{
	  visibility: hidden;
	  opacity: 0;
	  width: 220px;
	  background: #111;
	  color: #fff !important;
	  text-align: center;
	  border-radius: 8px;
	  padding: 10px;
	  position: absolute;
	  z-index: 9999;
	  bottom: 125%;
	  left: 50%;
	  transform: translateX(-50%);
	  font-size: 13px;
	  line-height: 1.5;
	  transition: all .2s ease;
	  pointer-events: none;
	}
	.reader-tooltip-text{
		bottom:100% !important;
	}

	.tooltip-wrapper:hover .tooltip-text{
	  visibility: visible;
	  opacity: 1;
	}

    /* popup styling */
    .popup-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(6px);
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .popup-box {
      background: white;
      max-width: 520px;
      width: 90%;
	  height: auto;
      border-radius: 2rem;
      padding: 1.8rem 2rem;
      position: relative;
      box-shadow: 0 40px 50px rgba(0,0,0,0.3);
      animation: fadeUp 0.2s ease;
    }



    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .close-btn {
      position: absolute;
      right: 1.4rem;
      top: 1rem;
      font-size: 1.8rem;
      cursor: pointer;
      color: #8a9bb0;
    }

    .form-group {
      margin-bottom: 1rem;
    }

    .form-group label {
      font-weight: 600;
      font-size: 0.85rem;
      color: #1f3b4c;
    }

    .form-group input, .form-group textarea, .form-group select, .form-group select:focus-visible {
      width: 100%;
      padding: 0.4rem 0.9rem;
      border-radius: 1rem;
      border: 1px solid #cfdfed;
      font-family: inherit;
      margin-top: 4px;
		font-size: 13px;
    color: #232425;
    }

    .error {
      color: #c44536;
      font-size: 0.7rem;
      display: block;
      margin-top: 4px;
    }

    #response-msg {
      color: #2c7a4d;
      font-weight: 500;
    }

    .btn-primary {
      background: #1e4663;
      color: white;
      border: none;
      padding: 0.7rem 1rem;
      border-radius: 2rem;
      width: 100%;
      font-weight: bold;
      cursor: pointer;
    }

    hr {
      margin: 1rem 0;
    }
	
	@media (max-width: 768px) {
		#leadForm .form-row {
			grid-template-columns: 1fr;
			gap:5px;
			margin-bottom:0px;
		}
	}

    @media (max-width: 760px) {
      body {
        padding: 1rem;
      }
      #configurator {
        padding: 0rem;
      }
	  .panel-container{
			width:100%;
			padding: 0.5rem;
	   }
      .credential-btn {
        width: 46%;
      }
    }
	@media (max-width: 500px){
		.options.readers-grid{
			display: flex;
			gap: 1rem;
			flex-wrap: wrap;
		}
		.option-btn.img-container{
			width: 47%;
		}
	}