/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
} */

       .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
   background:linear-gradient(135deg, #87CEEB, #4682B4);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.1);
}

header h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
	    color: white !important;
/*     font-family: inherit; */
	}

header p {
    color: white;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator wrapper */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    flex: 1;
    align-items: start;
}

/* Input section */
.input-section {
    background: white !important;
    border: 1px solid #E1F5FE !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #87CEEB, #4A90E2, #1E6AA8);
}

.input-section h2 {
     background:linear-gradient(135deg, #87CEEB, #4682B4);
    color: white;
    font-size: 1.5rem;
    margin: -30px -30px 25px -30px;
    padding: 20px 30px;
    border-radius: 16px 16px 0 0;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.input-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group label {
    display: block;
    color: #333 !important;
    font-weight: 600 !important;
    margin-bottom: 10px;
    font-size: 1rem !important;
    position: relative;
    padding-left: 8px;
}

.input-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #4A90E2, #87CEEB);
    border-radius: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid #E8F4FD;
    border-radius: 12px;
    font-size: 1.1rem;
    background: #FAFCFF;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
	font-family:inherit !important;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #4A90E2;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15), 0 4px 12px rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

.input-wrapper input:hover {
    border-color: #87CEEB;
    background: #FFFFFF;
}

.currency-symbol {
    position: absolute;
    left: 2px;
    color: #4A90E2;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1;
}

.percent-symbol {
    position: absolute;
    right: 15px;
    color: #4A90E2;
    font-weight: 600;
    font-size: 1.1rem;
}

.input-wrapper input[type="number"]::-webkit-outer-spin-button,
.input-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

/* Results section */
.results-section {
    background: white;
    border: 1px solid #E1F5FE !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E6AA8, #4A90E2, #87CEEB);
}

.results-section h2 {
    color: #1E6AA8;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.results-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4A90E2, #87CEEB);
    border-radius: 2px;
}

/* Final price card */
.final-price-card {
    background:linear-gradient(135deg, #87CEEB, #4682B4);
    padding: 30px 25px !important;
    border-radius: 16px;
    margin-bottom: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.final-price-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.final-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    padding: 8px !important;
    border-radius: 6px;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.final-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Breakdown */
.breakdown {
    background: #F8FCFF;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #E8F4FD;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #E8F4FD;
    transition: all 0.2s ease;
}

.breakdown-row:hover {
    background: rgba(74, 144, 226, 0.05);
    margin: 0 -10px;
    padding: 14px 10px;
    border-radius: 8px;
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row.savings {
    background: linear-gradient(135deg, #E3F2FD, #F0F8FF);
    margin: 15px -20px -20px -20px;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    border-bottom: none;
    border-top: 2px solid #4A90E2;
    font-weight: 600;
}

.breakdown-row.savings:hover {
    background: linear-gradient(135deg, #E3F2FD, #F0F8FF);
    margin: 15px -20px -20px -20px;
    padding: 20px;
}

.value {
    font-weight: 600;
    color: #1E6AA8;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.value::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4A90E2;
    border-radius: 50%;
    display: inline-block;
}

.breakdown-row.savings .value {
    color: #1E6AA8;
    font-size: 1.2rem;
}

.breakdown-row.savings .value::before {
    background: #1E6AA8;
    width: 8px;
    height: 8px;
}

.label {
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakdown-row.savings .label {
    color: #1E6AA8;
    font-weight: 600;
}


/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    color: #666;
    font-size: 0.95rem;
}

/* Copy toast */
.copy-toast {
    position: fixed;
    top: 30px;
    right: 20px;
    background: #4A90E2;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 5px !important;
    }
    
    header h1 {
        font-size: 35px !important;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .input-section,
    .results-section {
        padding: 25px 20px;
    }
    
    .final-price-amount {
        font-size: 2rem;
    }
    
    .breakdown-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
	.e-con{
		padding:7px;
	}
    
    .copy-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.75rem;
    }
    
    .input-section,
    .results-section {
        padding: 20px 15px;
    }
    
    .final-price-amount {
        font-size: 1.75rem;
    }
    
    .input-wrapper input {
        padding: 10px 40px 10px 12px;
        font-size: 1rem;
    }
    
    .currency-symbol {
        left: 12px;
        font-size: 1rem;
    }
    
    .percent-symbol {
        right: 3px;
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-wrapper {
    animation: fadeIn 0.6s ease-out;
}

.input-section,
.results-section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-section:hover,
.results-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
}

/* Enhanced visual elements */
.input-group:nth-child(2) .input-wrapper input:focus {
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15), 0 4px 12px rgba(74, 144, 226, 0.1);
}

.input-group:nth-child(3) .input-wrapper input:focus {
    box-shadow: 0 0 0 4px rgba(135, 206, 235, 0.15), 0 4px 12px rgba(135, 206, 235, 0.1);
}

.input-group:nth-child(4) .input-wrapper input:focus {
    box-shadow: 0 0 0 4px rgba(30, 106, 168, 0.15), 0 4px 12px rgba(30, 106, 168, 0.1);
}

.input-group:nth-child(5) .input-wrapper input:focus {
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15), 0 4px 12px rgba(74, 144, 226, 0.1);
}