/* styles.css */

/* General card styles */
.nsdc-grey-card,
.nsdc-mat-card,
.nsdc-clean-card {
    background: #f5f7fa;
    border-radius: 22px;
    box-shadow: 0 6px 32px 0 rgba(30, 40, 90, 0.08);
    max-width: 410px;
    margin: 32px auto 28px auto;
    padding: 28px 28px;
    font-family: 'Roboto', Arial, sans-serif;
    border: none;
    box-sizing: border-box;
}

/* Title styling */
.nsdc-mat-title,
.nsdc-cart-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1976d2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    letter-spacing: 0.01em;
}

/* Field and input styling */
.nsdc-mat-field,
.nsdc-cart-field {
    width: 100%;
    margin-bottom: 28px;
    position: relative;
}

.nsdc-mat-field input,
.nsdc-mat-field select,
.nsdc-cart-field input[type="text"],
.nsdc-cart-field select {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: #fff;
    padding: 15px 16px;
    font-size: 1.15rem;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(50, 80, 120, 0.04);
    border: 1.7px solid #e3e7ef;
    color: #222;
    font-weight: 500;
    transition: border-color .2s, box-shadow .15s;
    outline: none;
}

.nsdc-mat-field input:focus,
.nsdc-mat-field select:focus,
.nsdc-cart-field input[type="text"]:focus,
.nsdc-cart-field select:focus {
    border-color: #1976d2;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
}

/* Labels */
.nsdc-mat-label,
.nsdc-cart-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: #2388d3;
    margin-bottom: 2px;
    margin-left: 2px;
    display: block;
}

/* Checkbox row styling */
.nsdc-cart-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 26px;
}

.nsdc-cart-checkbox-row label {
    font-size: 1.09rem;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    user-select: none;
    line-height: 1.3;
}

.nsdc-cart-checkbox-row input[type="checkbox"] {
    width: 21px;
    height: 21px;
    margin-top: 1.5px;
    accent-color: #1976d2;
}

/* Price display styling */
.nsdc-mat-price,
.nsdc-cart-total-row strong,
.nsdc-cart-total-row span {
    font-weight: bold;
    color: #1976d2;
    font-size: 1.5rem;
    margin-bottom: 22px;
    margin-top: 8px;
}

/* Buttons styling */
.nsdc-mat-btn,
.nsdc-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    border: none;
    border-radius: 7px;
    font-size: 1.13rem;
    font-weight: 500;
    margin: 8px 12px 0 0;
    transition: background 0.18s;
    background:#000;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(25, 118, 210, .08);
    color: #fff;
    margin-top:10px;
}

#ns-delete.nsdc-cart-btn,
#ns-delete.nsdc-mat-btn {
    background: #d32f2f;
}

#ns-delete.nsdc-cart-btn:hover,
#ns-delete.nsdc-mat-btn:hover {
    background: #b71c1c;
}

#stripe-checkout.nsdc-cart-btn,
#stripe-checkout.nsdc-mat-btn {
    background: #1976d2;
}

#stripe-checkout.nsdc-cart-btn:disabled,
#stripe-checkout.nsdc-mat-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: .6;
}

#stripe-checkout.nsdc-cart-btn:hover:enabled,
#stripe-checkout.nsdc-mat-btn:hover:enabled {
    background: #1054a0;
}

/* Domain search bar */
.cc-domain-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border: none;
    max-width: 98vw;
    width: 100%;
    margin: 24px auto;
    height: 56px;
    box-sizing: border-box;
}

.cc-domain-icon {
    margin: 0 10px 0 18px;
    color: #9e9e9e;
    font-size: 1.5em;
    display: flex;
    align-items: center;
}

.cc-domain-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1.25rem;
    color: #444;
    background: transparent;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
}

.cc-domain-btn {
    height: 40px;
    min-width: 160px;
    margin-right: 12px;
    background: #0089cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.12rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-domain-btn:hover {
    background: #0d6e71;
}
@media only screen and (max-width: 767px) {
  /* 1) Container: light border, slight rounding */
  .cc-domain-search-bar {
    display: flex !important;
    align-items: center;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
  }

  /* 2) Hide the standalone icon (we’ll use the button’s icon) */
  .cc-domain-search-bar .cc-domain-icon {
    display: none !important;
  }

  /* 3) Input: no border, left rounding only */
  .cc-domain-search-bar .cc-domain-input {
    flex: 1;
    border: none;
    border-radius: 6px 0 0 6px;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
    margin: 0;
  }

  /* 4) Button: right rounding only, fixed width, centered icon */
  .cc-domain-search-bar .cc-domain-btn {
    flex: none;
    width: 38px;
    height: 54px;
    margin: 0;
    padding: 0;
    background: fuschia;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    position: relative;
    font-size: 0;     /* hide any text */
    line-height: 0;
  }
  /* inject the “search” icon */
  .cc-domain-search-bar .cc-domain-btn::before {
    content: "search";
    font-family: "Material Icons";
    font-size: 24px;
    color: #fff;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
  }
}
/* Snackbar */
#nsdc-snackbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #323232;
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 9999;
}
#nsdc-snackbar.show {
  opacity: 1;
  pointer-events: auto;
}

/* DNS Modal Overlay */
#nsdc-dns-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

/* DNS Modal Content */
#nsdc-dns-modal > div {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  max-width: 400px;
  width: 100%;
  position: relative;
}

/* Close Button */
.nsdc-close-dns {
  position: absolute;
  top: 8px; right: 8px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

/* DNS List */
#nsdc-dns-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
#nsdc-dns-list li {
  background: #f9f9f9;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#nsdc-dns-list .nsdc-delete-dns {
  background: none;
  border: none;
  color: #c00;
  font-size: 18px;
  cursor: pointer;
}

/* DNS Form */
#nsdc-dns-form select,
#nsdc-dns-form input {
  width: 100%;
  padding: 0px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
#nsdc-dns-form button {
  background: #017f7c;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Profile Form */
#nsdc-profile-form input {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
#nsdc-profile-form button {
  background: #017f7c;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.cc-domain-search-bar .cc-domain-icon {
    margin-left:10px;
}
.cc-domain-search-bar .cc-domain-input {
   
        padding: 0px 60px 0px 20px!important;
}
  .cc-domain-search-bar .cc-domain-input {
    flex: 1;
    border: none !important;
  }
  #ns-base ::placeholder, #ns-base, #ns-base input {
      color:#000!important;
  
  }
/* Desktop-only (adjust breakpoint if you need tablet/mobile too) */
@media (min-width: 768px) {
  .cc-domain-search-bar {
    display: flex !important;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    /* subtle light border instead of black, no shadow */
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    overflow: hidden;
  }
.cc-domain-search-bar .cc-domain-btn {
    margin-right:0px;
}
  .cc-domain-search-bar .cc-domain-icon {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 20px;
    color: #888;
  }

  .cc-domain-search-bar .cc-domain-input {
    flex: 1;
    border: none !important;
    outline: none;
    padding: 12px 0;
    font-size: 1rem;
    color: #333;
  }

  .cc-domain-search-bar .cc-domain-input::placeholder {
    color: #aaa;
  }

  .cc-domain-search-bar .cc-domain-btn {
    flex-shrink: 0;
    /* match your logo’s deep teal */
    background: fuschia !important;
    color: #fff !important;
    border: none !important;
    padding:32px;
    font-size: 1rem;
    cursor: pointer;
  }
  .cc-domain-search-bar .cc-domain-btn:hover {
    opacity: 0.9;
  }
}

