﻿/* ============================================
   M-PESA Send Money Charges Calculator CSS
   Page-Specific Styles
   ============================================ */

/* ============================================
   1. HERO SECTION
   ============================================ */

.send-money-hero-section {
    position: relative;
    background: #04351f;
    padding: 4.5rem 0 8rem;
    overflow: hidden;
    min-height: 650px;
}

.send-money-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.send-money-hero-header {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.send-money-hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff !important;
    margin: 0 0 0.85rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    display: inline-block;
    text-shadow: none;
}

.send-money-hero-subtitle-main {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0.4rem 0 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.send-money-hero-rotate {
    color: #d0a24a;
    font-weight: 700;
    display: inline-block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.send-money-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 900px;
    margin: 0 auto 0.25rem;
    line-height: 1.6;
}

.send-money-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
}

.send-money-hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   2. CALCULATOR BOARD
   ============================================ */

.send-money-calc-board {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    max-width: 860px;
    margin: 0 auto 0;
    position: relative;
    z-index: 10;
    transform: translateY(4.5rem);
}

.send-money-calc-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.send-money-calc-top {
    margin-bottom: 2rem;
}


.send-money-recipient-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    text-align: center;
    margin-bottom: 0.75rem;
}
.send-money-recipient-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.send-money-recipient-pill {
    flex: 1;
    min-width: 140px;
    cursor: pointer;
    position: relative;
}

.send-money-recipient-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.send-money-recipient-pill span {
    display: block;
    padding: 0.875rem 1.5rem;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
}

.send-money-recipient-pill:hover span {
    background: #eef2f5;
    border-color: #0f5132;
}

.send-money-recipient-pill input[type="radio"]:checked+span {
    background: #004526;
    border-color: #004526;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 69, 38, 0.3);
}

.send-money-calc-main {
    margin-bottom: 2rem;
}

.send-money-calc-input {
    margin-bottom: 1.5rem;
}

.send-money-calc-input label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.send-money-calc-input input {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.send-money-calc-input input:focus {
    outline: none;
    border-color: #004526;
    box-shadow: 0 0 0 3px rgba(0, 69, 38, 0.1);
}

.send-money-calc-input--error label {
    color: #b91c1c;
}

.send-money-calc-input--error input {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    background: #fff5f5;
}

.send-money-input-hint {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-align: center;
}

.send-money-calc-submit {
    width: 100%;
    padding: 0.95rem 2rem;
    background: #004526;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 69, 38, 0.22);
}

.send-money-calc-submit:hover {
    background: #00592e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 69, 38, 0.4);
}

.send-money-calc-submit:active {
    transform: translateY(0);
}

/* ============================================
   3. RESULT CARD
   ============================================ */

.send-money-result-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
  animation: slideIn 0.4s ease-out;
  display: grid;
  gap: 1rem;
}

.send-money-result-card--error {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.send-money-result-error {
  display: grid;
  gap: 6px;
  padding: 0.85rem;
  border-radius: 0.5rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #7f1d1d;
  font-weight: 600;
}

.send-money-result-error__title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.send-money-result-error__text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.send-money-result-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.send-money-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: #ffffff;
  border-radius: 0.45rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.send-money-result-row span {
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.send-money-result-row strong {
  color: #004526;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .send-money-result-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .send-money-result-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .send-money-result-row strong {
    font-size: 1.4rem;
  }
}

/* ============================================
   4. RATE TABLE SECTION
   ============================================ */

.rate-table-section {
    padding: 4rem 0;
    background: #f6f7f9;
}

.rate-table-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.rate-table-heading h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.rate-table-heading p {
    font-size: 1.125rem;
    color: #6b7280;
}

.rate-toggle-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.rate-toggle {
    padding: 0.875rem 2rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.4rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rate-toggle:hover {
    border-color: #004526;
    color: #004526;
}

.rate-toggle.active {
    background: #004526;
    border-color: #004526;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 69, 38, 0.18);
}

.rate-table-container {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rate-table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rate-table-updated {
    font-size: 0.875rem;
    color: #6b7280;
}

.rate-table-wrapper {
    overflow-x: auto;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
}

.rate-table thead {
    background: #f4f6f8;
}

.rate-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rate-table th:last-child,
.rate-table td:last-child {
    text-align: right;
}

.rate-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.rate-table td strong {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.05rem;
}

.rate-table__highlight {
    background: #eef7f0;
}

.rate-table__highlight td {
    font-weight: 600;
}

.rate-table tbody tr:hover {
    background: #f5f7f8;
}

.rate-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* ============================================
   5. LIMITS SECTION
   ============================================ */

.limits-section {
    padding: 4rem 0;
    background: #0b3b24;
    position: relative;
    overflow: hidden;
}

.limits-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.limits-heading h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.limits-heading p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.limit-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.limit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.limit-card--primary {
    border-color: #0f5132;
    background: #f8fbf9;
}

.limit-card__icon {
    width: 60px;
    height: 60px;
    background: #0f5132;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    font-size: 1.5rem;
}

.limit-card__content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.limit-card__value {
    font-size: 2rem;
    font-weight: 900;
    color: #0f5132;
    margin-bottom: 0.5rem;
}

.limit-card__description {
    font-size: 0.95rem;
    color: #6b7280;
}

/* ============================================
   ARTICLE CONTENT SECTION - NOTEBOOK STYLE
   ============================================ */

.article-content-section {
    background: #f6f7f9;
    padding: 4rem 0;
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    position: relative;
    padding: 2.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
    background-image: linear-gradient(#f2f4f6 1px, transparent 1px);
    background-size: 100% 32px;
}

.article-content::before {
    content: '';
    position: absolute;
    left: 2.25rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: #cfd6dd;
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: none;
    position: relative;
}

.article-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 1rem;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 1rem;
}

.article-body p {
    margin: 0 0 1.5rem;
}

.article-lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin: 2.25rem 0 1rem;
    line-height: 1.3;
}

.article-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    margin: 1.75rem 0 0.85rem;
    line-height: 1.4;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5rem;
    padding-left: 1.75rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-body li strong {
    color: #111827;
    font-weight: 600;
}

.article-body strong {
    color: #111827;
    font-weight: 600;
}

.article-callout {
    padding: 1.1rem 1.25rem;
    border-radius: 0.6rem;
    margin: 1.75rem 0;
    border-left: 3px solid;
}

.article-callout p {
    margin: 0;
}

.article-callout ul {
    margin: 0.75rem 0 0;
}

.article-callout li:last-child {
    margin-bottom: 0;
}

.article-callout--success {
    background: #f0fdf4;
    border-color: #10b981;
    color: #065f46;
}

.article-callout--success strong {
    color: #047857;
}

.article-callout--warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.article-callout--warning strong {
    color: #b45309;
}

.article-callout--info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.article-callout--info strong {
    color: #1d4ed8;
}

.article-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.article-table thead {
    background: #f9fafb;
}

.article-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
}

.article-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.article-table tbody tr:last-child td {
    border-bottom: none;
}

.article-table tbody tr:hover {
    background: #f9fafb;
}

.article-table strong {
    color: #111827;
    font-weight: 600;
}

.article-disclaimer {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 3rem 0 0;
}

.article-disclaimer h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem;
}

.article-disclaimer p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Styles for Article - Notebook */
@media (max-width: 768px) {
    .article-content-section {
        padding: 2rem 0;
    }

    .article-content {
        padding: 2rem 1.5rem;
    }

    .article-title {
        font-size: 1.875rem;
    }

    .article-meta {
        font-size: 0.875rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-lead {
        font-size: 1.125rem;
    }

    .article-body h3 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .article-body h4 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem;
    }

    .article-callout {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .article-table {
        font-size: 0.875rem;
    }

    .article-table thead {
        display: none;
    }

    .article-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        overflow: hidden;
    }

    .article-table td {
        display: block;
        text-align: right;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .article-table td:last-child {
        border-bottom: none;
    }

    .article-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #111827;
    }

    .article-table tbody tr:hover {
        background: transparent;
    }
}

/* ============================================
   6. FAQ SECTION
   ============================================ */

.send-money-faq-section {
    padding: 4rem 0;
    background: #ffffff;
}

.send-money-faq-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.send-money-faq-heading h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.send-money-faq-heading p {
    font-size: 1.125rem;
    color: #6b7280;
}

.send-money-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.send-money-faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.send-money-faq-item:hover {
    border-color: #004526;
}

.send-money-faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.send-money-faq-toggle:hover {
    background: #f6f7f9;
}

.send-money-faq-toggle[aria-expanded="true"] {
    background: #f3f7f4;
}

.send-money-faq-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
    padding-right: 1rem;
}

.send-money-faq-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004526;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.send-money-faq-toggle[aria-expanded="true"] .send-money-faq-icon {
    transform: rotate(45deg);
}

.send-money-faq-body {
    padding: 0 1.5rem 1.5rem;
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

.send-money-faq-body strong {
    color: #004526;
    font-weight: 700;
}

.send-money-faq-body[hidden] {
    display: none;
}

/* ============================================
   7. RESPONSIVE DESIGN
   ============================================ */

@media (min-width: 1024px) {
    .send-money-hero-title {
        font-size: 3rem;
    }

    .send-money-hero-subtitle-main {
        font-size: 1.85rem;
    }
}

@media (max-width: 768px) {
    .send-money-hero-section {
        padding: 4rem 0 6rem;
    }

    .send-money-hero-title {
        font-size: 2rem;
    }

    .send-money-hero-subtitle-main {
        font-size: 1.25rem;
    }

    .send-money-hero-subtitle {
        font-size: 1rem;
    }

    .send-money-calc-board {
        padding: 1.5rem;
        margin: 0 auto;
    }

    
.send-money-recipient-selector {
        flex-direction: column;
    }

    .send-money-recipient-pill {
        min-width: 100%;
    }

    .send-money-result-amount {
        font-size: 2rem;
    }

    .limits-grid {
        grid-template-columns: 1fr;
    }

    .rate-toggle-group {
        flex-direction: column;
    }

    .rate-toggle {
        width: 100%;
    }

    .rate-table-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .send-money-faq-question {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .send-money-hero-section {
        padding: 3rem 0 4rem;
        min-height: auto;
    }

    .send-money-hero-title {
        font-size: 1.65rem;
        letter-spacing: 0;
    }

    .send-money-hero-subtitle-main {
        font-size: 1rem;
    }

    .send-money-hero-subtitle {
        font-size: 0.9rem;
    }

    .send-money-calc-board {
        transform: none;
        padding: 1.25rem;
        margin: 1.25rem auto 0;
    }

    .send-money-recipient-pill span {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .send-money-calc-input input {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }

    .send-money-calc-submit {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }

    .send-money-result-row {
        padding: 0.75rem 0.9rem;
    }

    .rate-table-section {
        padding: 3rem 0;
    }

    .rate-table-container {
        padding: 1.25rem;
    }

    .rate-table th,
    .rate-table td {
        padding: 0.75rem;
    }

    .article-content {
        padding: 1.75rem 1.25rem;
        background-size: 100% 28px;
    }

    .article-content::before {
        left: 1.25rem;
        top: 1.25rem;
        bottom: 1.25rem;
    }

    .limits-grid {
        gap: 1.25rem;
    }

    .limit-card {
        padding: 1.5rem;
    }

    .limit-card__value {
        font-size: 1.6rem;
    }

    .send-money-faq-toggle {
        padding: 1.1rem;
    }

    .send-money-faq-body {
        padding: 0 1.1rem 1.1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .limits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   8. ACCESSIBILITY & FOCUS STATES
   ============================================ */

.send-money-calc-submit:focus,
.send-money-recipient-pill input:focus+span,
.send-money-calc-input input:focus,
.rate-toggle:focus,
.send-money-faq-toggle:focus {
    outline: 3px solid #004526;
    outline-offset: 2px;
}

/* ============================================
   9. PRINT STYLES
   ============================================ */

@media print {
    .send-money-hero-section {
        display: none;
    }

    .rate-table-section {
        page-break-inside: avoid;
    }
}


