.grecaptcha-badge {
    visibility: hidden !important;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
  font-family: system-ui, sans-serif;
}

.form-input {
  width: 100%;
  padding: 16px 12px 6px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  background-color: #fff;
  transition: border-color 0.3s;
  height: 49px;
}

.form-input:focus {
  border-color: #000;
}

.form-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #888;
  pointer-events: none;
  transition: 0.2s ease all;
}

/* Float when focused or has value */
.form-input:focus + .form-label,
.form-input.filled + .form-label,
.form-input:required:valid + .form-label {
  top: 12px;
  font-size: 12px;
  color: #888;
}

.form-input.has-value + .form-label {
  top: 12px;
  font-size: 12px;
  color: #888;
}

/* Special case for select dropdowns */
select.form-input:invalid + .form-label {
  top: 50%;
  font-size: 16px;
  color: #888;
}


.card_summary_1 {
  background-color: var(--muted);
}

.card_header_summary_1 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 1.1rem 1.5rem;
    }

    .card_header_summary_1 h2 {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .summary_1_chevron {
        margin-left: 8px;
        transition: transform 0.6s ease;
    }

    .rotate {
        transform: rotate(180deg);
    }

    .card_content_summary_1 {
        overflow: hidden;
        max-height: 0;
        padding: 0 1.5rem !important;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.6s ease, opacity 0.6s ease, visibility 0.6s ease, padding 0.6s ease;
    }

    .card_content_summary_1.expanded {
        max-height: 500px; /* large enough to fit content */
        opacity: 1;
        visibility: visible;
        padding: 0.5rem 1.5rem 1.5rem !important;
    }

/* CSS Variables for RapidTax Theme */
:root {
  --background: #ffffff;
  --foreground: #333333;
  --card: #fafafa;
  --card-foreground: #2d4a52;
  --primary: #f59e0b;
  --primary-foreground: #ffffff;
  --secondary: #2d4a52;
  --secondary-foreground: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #f59e0b;
  --accent-foreground: #ffffff;
  --border: #e5e7eb;
  --input: #fafafa;
  --ring: rgba(45, 74, 82, 0.3);
  --radius: 0.5rem;
}

.dark {
  --background: #1a1a1a;
  --foreground: #ffffff;
  --card: #1a1a1a;
  --card-foreground: #ffffff;
  --muted: #404040;
  --muted-foreground: #a3a3a3;
  --border: #404040;
  --input: #404040;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 2.5rem;
  width: auto;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.welcome-message,
.secure-checkout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.icon {
  width: 1rem;
  height: 1rem;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--muted-foreground);
}

/* Form Layout */
.checkout-form {
  display: grid;
  gap: 2rem;
  grid-template-columns: 2fr 1fr;
}

@media (max-width: 1024px) {
  .checkout-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Cards */
.card {
  border: 2px solid rgba(229, 231, 235, 0.5);
  border-radius: var(--radius);
  background-color: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1.5rem 1.5rem 1rem;
}

.card-content {
  padding: 0.5rem 1.5rem 1.5rem;
}

.card-title-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.title-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.title-content .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  margin-top: 0.125rem;
}

.title-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.title-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Login Section */
.login-section {
  text-align: right;
  border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin: 0px 24px;
}

.login-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Form Elements */
/* .form-group {
  margin-bottom: 1.5rem;
} */

.form-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

input,
select {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid #6b7280;
  border-radius: var(--radius);
  background-color: var(--input);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.phone-input {
  display: flex;
  gap: 0.5rem;
}

.country-select {
  width: 6rem;
  flex-shrink: 0;
}

small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-primary:hover {
  background-color: rgba(245, 158, 11, 0.9);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-foreground);
  border: 1px solid var(--accent);
  background-color: var(--accent);
}

.btn-outline:hover {
  background-color: rgba(245, 158, 11, 0.9);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Order Summary */
.order-summary .card {
  position: sticky;
  top: 2rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.summary-item.total {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.text-muted {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.separator {
  height: 1px;
  background-color: var(--border);
  margin: 1rem 0;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.security-note .icon {
  width: 0.75rem;
  height: 0.75rem;
}

/* Security Section */
.security-section {
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.security-header {
  text-align: center;
  margin-bottom: 2rem;
}

.security-header p {
  color: var(--muted-foreground);
}

.security-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 2rem;
}

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

.security-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.security-icon.green {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.security-icon.blue {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.security-icon.purple {
  background-color: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.security-icon.orange {
  background-color: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.security-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.security-item h4 {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.security-item p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.trust-badge {
  text-align: center;
  border-radius: var(--radius);
  background-color: rgba(245, 245, 245, 0.5);
  padding: 1.5rem;
}

.trust-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.trust-content .icon {
  color: var(--primary);
}

.trust-content span {
  font-weight: 500;
}

.trust-badge p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 28rem;
  margin: 1rem;
}

.modal-header {
  padding: 1.5rem 1.5rem 1rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.modal-body {
  padding: 0 1.5rem 1.5rem;
}

.button-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.button-group .btn {
  flex: 1;
}

.order-summary-mobile{
  display: none;
}

/* Responsive Design */
@media (max-width: 640px) {

  .main-content {
  padding-top: 0;
}

  .order-summary-mobile{
  display: block;
}

  .container {
    padding: 0;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .card-title-section {
    gap: 1rem;
  }

  .login-section {
    text-align: right;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }
}
