/* ==================== Supplement Calculator Styles ==================== */

.supplement-cont {
    background-color: #231F20;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 0px 0px 80px;
    /* margin-top: 60px; */
    margin-bottom: 48px;
}

h1 {
  text-align: center;
  margin: 48px;
}


.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 36px;
    align-items: center;
}

.custom-form-wrapper {
    width: 60%;
}

.custom-form-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.text, 
.custom-form select {
    background-color: #fff !important;
    height: 54px !important;
    color: #000;
    border: solid 2px #fff;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.text:focus,
.custom-form select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.custom-form select {
    cursor: pointer;
    margin-bottom: 30px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.custom-form input::placeholder {
    color: #aaa;
}

/* Radio Group */
#titleTypeWrapper {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#titleTypeWrapper label:first-child {
    color: #fff;
    /* margin-bottom: 15px; */
    font-size: 15px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #d1d0d2;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.radio-label input[type="radio"]:checked + span {
    color: #fff;
}

/* Results Section */
.added_percent { 
    margin: auto;
    display: flex;
    flex-direction: column;
    width: 60%;
    gap: 20px;
    /* padding-left: 20px; */
    color: #fff;
}

.loading-calc {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.spinner-small {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

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

/* Results Card */
#calcResults {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Total Price - Hero Section */
.total_price {
    background: linear-gradient(135deg, red 0%, #570f06 100%);
    padding: 30px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.total_price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.total_price .amount {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-top: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

/* Summary Section */
.price_with_added,
.supplement {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
    color: #d1d0d2;
    font-weight: 500;
    transition: background 0.2s ease;
}

.price_with_added:hover,
.supplement:hover {
    background: rgba(255, 255, 255, 0.02);
}

.price_with_added .amount,
.supplement .amount {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.supplement {
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 25px;
}

/* Fee Breakdown - Table Style */
.fee-breakdown {
    padding: 25px 30px 30px;
    background: rgba(0, 0, 0, 0.15);
}

.fee-breakdown-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.fee-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    align-items: center;
    transition: all 0.2s ease;
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-item:hover {
    padding-left: 10px;
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -10px;
    padding-right: 10px;
    border-radius: 6px;
}

.fee-item-label {
    text-transform: capitalize;
    color: #d1d0d2;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fee-item-label::before {
    content: '•';
    color: #ee1d23;
    font-size: 20px;
    line-height: 1;
}

.fee-item-value {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    text-align: right;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    min-width: 90px;
}

/* Error Message */
.error-message {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.3);
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 850px) {
    .custom-form-wrapper,
    .added_percent {
        width: 85%;
    }
    
    .total_price .amount {
        font-size: 36px;
    }
    
    .fee-item {
        grid-template-columns: 1fr auto;
        gap: 15px;
    }
}

@media screen and (max-width: 500px) {
    .custom-form-wrapper,
    .added_percent {
        width: 91%;
    }
    
    .custom-form {
        margin: 20px;
    }
    
    .total_price {
        padding: 25px 20px;
        font-size: 16px;
    }
    
    .total_price .amount {
        font-size: 32px;
    }
    
    .price_with_added,
    .supplement {
        font-size: 14px;
        padding: 15px 20px;
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 8px;
    }
    
    .price_with_added .amount,
    .supplement .amount {
        font-size: 18px;
        align-self: flex-end;
    }
    
    .fee-breakdown {
        padding: 20px;
    }
    
    .fee-item {
        padding: 10px 0;
        gap: 10px;
    }
    
    .fee-item-label {
        font-size: 14px;
    }
    
    .fee-item-value {
        font-size: 15px;
        min-width: 80px;
        padding: 5px 10px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

  .custom-form input,
  .custom-form select {
    background: #fff;
    border: solid 2px #fff;
    width: 100%;
    height: 43px;
    box-sizing: border-box;
    border-radius: 8px;
  }
  
  .custom-form input{
    padding: 15px;
    height: 54px;
  }
  .custom-form input::placeholder {
    color: #aaa;
  }
  
  .custom-form select {
    cursor: pointer;
    margin-bottom: 30px;
  }
  