.address-form-container {
  background: linear-gradient(135deg, #1cb4ad, #099389, #08847c);
  padding: 2px;
  border-radius: 16px;
  margin: 20px 0;
  box-shadow: 0 10px 40px rgba(28, 180, 173, 0.25);
  overflow: hidden;
}

.address-form-header {
  background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
  padding: 20px 15px;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.address-form-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1cb4ad, #099389, #1cb4ad);
}

.address-form-icon-wrapper {
  background: linear-gradient(135deg, #1cb4ad, #099389);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(28, 180, 173, 0.3);
}

.address-form-header-content {
  flex: 1;
  min-width: 0;
}

.address-form-title {
  margin: 0;
  background: linear-gradient(135deg, #1cb4ad, #099389, #08847c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 22px;
  font-weight: 800;
  word-wrap: break-word;
  letter-spacing: -0.2px;
}

.address-form-subtitle {
  margin: 6px 0 0 0;
  background: linear-gradient(135deg, #666, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.address-form-section {
  background: linear-gradient(to bottom right, #ffffff, #fafafa);
  padding: 25px 20px;
  border-top: 2px solid #099389;
  position: relative;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.address-form-section.editing-mode {
  border-top-color: #f16948;
  background: linear-gradient(to bottom right, #fff9f7, #ffffff);
}

.address-form-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #1cb4ad, #099389);
  border-radius: 0 4px 4px 0;
}

.address-form-section-title {
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #1cb4ad, #099389);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-left: 10px;
}

.address-form-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(to bottom, #1cb4ad, #099389);
  border-radius: 2px;
}

.address-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.address-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 768px) {
  .address-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .address-form-header {
    padding: 15px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .address-form-icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 24px;
    box-shadow: 0 6px 15px rgba(28, 180, 173, 0.3);
  }
  
  .address-form-title {
    font-size: 24px;
  }
  
  .address-form-subtitle {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .address-form-section {
    padding: 15px 12px;
  }
  
  .address-form-title {
    font-size: 20px;
  }
  
  .address-form-section-title {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

.address-form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.address-form-label {
  margin-bottom: 6px !important;
  background: linear-gradient(135deg, #333, #444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1.3;
}

.address-form-required {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 3px;
  font-weight: 700;
}

.address-form-input {
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
  background: linear-gradient(to bottom, #ffffff, #f9f9f9);
}

.address-form-input:focus {
  outline: none;
  border-color: #1cb4ad;
  background: linear-gradient(to bottom, #ffffff, #f0f9f8);
  box-shadow: 0 0 0 3px rgba(28, 180, 173, 0.15), 
              inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.address-form-input::placeholder {
  color: #aaa;
  font-size: 14px;
  font-weight: 400;
}

/* Fix for iOS zoom on focus */
@media (max-width: 768px) {
  .address-form-input {
    font-size: 16px !important;
    padding: 14px 12px !important;
    min-height: 44px;
  }
  
  input[type="text"],
  input[type="tel"],
  input[type="number"],
  input[type="email"] {
    font-size: 16px !important;
  }
}

.address-form-textarea {
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  resize: vertical;
  color: #333;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  min-height: 100px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to bottom, #ffffff, #f9f9f9);
}

@media (max-width: 768px) {
  .address-form-textarea {
    font-size: 16px !important;
    min-height: 120px;
  }
}

.address-form-textarea:focus {
  outline: none;
  border-color: #1cb4ad;
  background: linear-gradient(to bottom, #ffffff, #f0f9f8);
  box-shadow: 0 0 0 3px rgba(28, 180, 173, 0.15), 
              inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.address-form-textarea::placeholder {
  color: #aaa;
  font-size: 14px;
  font-weight: 400;
}

.address-form-type-container {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.address-form-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background: linear-gradient(to bottom, #ffffff, #f8f8f8);
  color: #666;
  flex: 1;
  min-width: 120px;
  justify-content: center;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.address-form-type-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.address-form-type-option:hover::before {
  left: 100%;
}

@media (max-width: 480px) {
  .address-form-type-option {
    min-width: calc(50% - 5px);
    padding: 10px 12px;
    font-size: 13px;
  }
}

.address-form-type-option.active {
  border-color: #1cb4ad;
  background: linear-gradient(135deg, rgba(28, 180, 173, 0.15), rgba(9, 147, 137, 0.1));
  color: #1cb4ad;
  box-shadow: 0 4px 12px rgba(28, 180, 173, 0.2);
  transform: translateY(-2px);
}

.address-form-type-option:hover {
  border-color: #1cb4ad;
  background: linear-gradient(135deg, rgba(28, 180, 173, 0.08), rgba(9, 147, 137, 0.05));
  color: #1cb4ad;
  transform: translateY(-2px);
}

.address-form-type-option svg {
  font-size: 16px;
}

.address-form-type-option span {
  font-weight: 600;
}

.address-form-button-container {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.address-form-submit-btn {
  flex: 1;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1cb4ad, #099389, #08847c);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.address-form-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.address-form-submit-btn:hover::before {
  left: 100%;
}

.address-form-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #19a8a1, #08847c, #07746e);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(28, 180, 173, 0.4);
}

.address-form-submit-btn:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(28, 180, 173, 0.3);
}

.address-form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #cccccc, #aaaaaa);
}

.address-form-cancel-btn {
  padding: 14px 20px;
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  color: #666;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 48px;
  flex: 1;
}

@media (max-width: 480px) {
  .address-form-submit-btn,
  .address-form-cancel-btn {
    flex: 1 0 100%;
    font-size: 15px;
    padding: 12px 16px;
  }
}

.address-form-cancel-btn:hover {
  background: linear-gradient(to bottom, #e9ecef, #dee2e6);
  color: #333;
  border-color: #bbb;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.address-form-address-section {
  background: linear-gradient(to bottom right, #ffffff, #fafafa);
  padding: 25px 20px;
  border-top: 1px solid #eee;
  position: relative;
  margin-bottom: 30px;
  border-radius: 8px;
}

.address-form-section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.address-form-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, #099389 0%, #0a7a73 100%);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(9, 147, 137, 0.2);
}

.address-form-add-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #099389 0%, #0a7a73 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(9, 147, 137, 0.3);
}

.address-form-add-new-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0a7a73 0%, #099389 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(9, 147, 137, 0.4);
}

.address-form-add-new-btn:active:not(:disabled) {
  transform: translateY(0);
}

.address-form-add-new-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.address-form-add-new-btn svg {
  font-size: 16px;
}

.address-form-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.address-form-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  color: #666;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.address-form-close-btn:hover:not(:disabled) {
  background: #ff4444;
  color: #fff;
  border-color: #ff4444;
  transform: rotate(90deg);
}

.address-form-close-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.address-form-address-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #1cb4ad, #099389);
  border-radius: 0 4px 4px 0;
}

.address-form-address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .address-form-address-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.address-form-address-card {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  background: linear-gradient(to bottom right, #ffffff, #f8f8f8);
  position: relative;
  overflow: hidden;
}

.address-form-address-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1cb4ad, #099389);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.address-form-address-card:hover::before {
  transform: scaleX(1);
}

.address-form-address-card.selected {
  border-color: #1cb4ad;
  background: linear-gradient(135deg, #ffffff, #f0f9f8);
  box-shadow: 0 8px 25px rgba(28, 180, 173, 0.15);
}

.address-form-address-card.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1cb4ad, #099389, #1cb4ad);
  transform: scaleX(1);
  box-shadow: 0 2px 8px rgba(28, 180, 173, 0.3);
}

.address-form-address-card:hover {
  border-color: #1cb4ad;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(28, 180, 173, 0.2);
}

.address-form-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.address-form-address-type {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1cb4ad, #099389);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.address-form-address-type svg {
  font-size: 16px;
  background: linear-gradient(135deg, #1cb4ad, #099389);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.address-form-type-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.address-form-radio-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #1cb4ad;
  transform: scale(1.1);
  transition: transform 0.2s;
}

.address-form-radio-input:checked {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(28, 180, 173, 0.2);
}

.address-form-card-content {
  margin-bottom: 15px;
}

.address-form-radio-label {
  cursor: pointer;
  display: block;
}

.address-form-address-name {
  margin: 0 0 6px 0;
  background: linear-gradient(135deg, #333, #222);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.address-form-address-text {
  margin: 3px 0;
  background: linear-gradient(135deg, #555, #666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.address-form-landmark-text {
  margin: 6px 0 0 0;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
  font-style: italic;
}

.address-form-landmark-text strong {
  background: linear-gradient(135deg, #555, #444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.address-form-card-actions {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.address-form-action-btn {
  flex: 1;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(28, 180, 173, 0.12), rgba(9, 147, 137, 0.08));
  color: #1cb4ad;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s;
  min-height: 36px;
  position: relative;
  overflow: hidden;
}

.address-form-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(28, 180, 173, 0.2), transparent);
  transition: left 0.4s;
}

.address-form-action-btn:hover::before {
  left: 100%;
}

.address-form-action-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(28, 180, 173, 0.2), rgba(9, 147, 137, 0.15));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 180, 173, 0.2);
}

.address-form-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #e0e0e0, #cccccc);
  color: #999;
}

.address-form-action-btn.danger {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.12), rgba(192, 57, 43, 0.08));
  color: #e74c3c;
}

.address-form-action-btn.danger:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.15));
}

.address-form-selected-section {
  background: linear-gradient(135deg, #1cb4ad, #099389, #08847c);
  padding: 20px 15px;
  border-radius: 0 0 14px 14px;
  color: white;
  position: relative;
  overflow: hidden;
}

.address-form-selected-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.address-form-selected-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
}

.address-form-selected-header svg {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.address-form-selected-header span {
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.address-form-selected-address-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
  word-wrap: break-word;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.address-form-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 15px;
  gap: 15px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
}

.address-form-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid transparent;
  border-radius: 50%;
  background: linear-gradient(135deg, #1cb4ad, #099389);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #fff 0);
  animation: address-form-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes address-form-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.address-form-loading-text {
  background: linear-gradient(135deg, #666, #444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 14px;
  margin: 0;
  text-align: center;
  font-weight: 600;
}

.address-form-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 15px;
  gap: 15px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
  border: 2px dashed #ddd;
}

.address-form-empty-text {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #666, #333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.address-form-empty-subtext {
  font-size: 13px;
  margin: 0;
  background: linear-gradient(135deg, #999, #777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

/* Gradient animation for buttons */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.address-form-submit-btn {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Additional fixes for very small screens */
@media (max-width: 360px) {
  .address-form-container {
    margin: 10px 0;
    border-radius: 12px;
  }
  
  .address-form-input,
  .address-form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }
  
  .address-form-type-option {
    min-width: 100%;
  }
}