body { font-family: 'Roboto', sans-serif; line-height: 1.6; color: #333; margin: 0; padding: 0; background-color: #f4f4f4; }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* Хедер стилови */
header { background: #00481c; color: white; padding: 1rem 0; text-align: center; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-container { flex-grow: 1; text-align: left; }
.header-logo { max-width: 280px; max-height: auto; }
.banner-container { text-align: right; }
.banner-container img { max-width: 728px; height: 90px; }
.site-title { margin: 0; font-size: 2.5rem; text-align: center; }

.top-section { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.calculator { background: #76767624; padding: 20px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); flex: 3; }
.ad-banner { background: #76767624; padding: 10px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); flex: 1; min-width: 300px; max-width: 300px; text-align: center; align-self: flex-start; }
.ad-banner img { width: 100%; height: auto; display: block; }
.calculator h2 { margin-top: 0; text-align: center; }
.calculator-form { display: flex; flex-direction: column; gap: 15px; }
.calculator-form .input-group { display: flex; flex-direction: column; align-items: flex-start; }
.calculator-form .input-group label { margin-bottom: 5px; font-weight: bold; }
.calculator-form .input-group input, .calculator-form .input-group select { padding: 10px; border: 1px solid #ccc; border-radius: 4px; width: 100%; box-sizing: border-box; }
.calculator-form button { padding: 12px 25px; background: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; margin-top: 10px; }
.results-section { margin-top: 40px; }
.results-section h2 { text-align: center; }
.results-grid { 
    display: flex; 
    flex-direction: column;
    gap: 20px; 
}
.loan-card { background: white; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s; }
.loan-card:hover { transform: translateY(-5px); }
.loan-card-compact { display: flex; align-items: center; padding: 15px; cursor: pointer; }
.loan-card-compact img { width: 60px; height: auto; margin-right: 25px; }
.loan-info { flex-grow: 1; }
.loan-info h3 { margin: 0; font-size: 1.2em; color: #0056b3; }
.loan-rates { font-size: 1.1em; font-weight: bold; color: #28a745; }
.loan-term { color: #555; }
.loan-actions { display: flex; align-items: center; gap: 10px; }
.details-button, .apply-button {
    padding: 8px 15px; border-radius: 4px; cursor: pointer; text-decoration: none; font-weight: bold;
    transition: background-color 0.3s;
}
.details-button { background: #555; color: white; border: none; }
.details-button:hover { background-color: #333; }
.apply-button { background: #007bff; color: white; }
.apply-button:hover { background: #0056b3; }
.loan-details { display: none; padding: 15px; border-top: 1px solid #ddd; background-color: #f9f9f9; }
.loan-details.active { display: block; }
.loan-details .detail-item { margin-bottom: 10px; }
.loan-details-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ОСНОВЕН CSS ЗА КОМПАКТЕН ФУТЕР */
.compact-footer {
    background-color: #41230f; /* Темно сина позадина */
    color: #ecf0f1; /* Светло сив текст */
    padding: 30px 0; /* Намалена висина */
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.compact-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Центрирање по вертикала */
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    padding: 0 20px; /* Хоризонтален простор меѓу секциите */
    border-left: 1px solid #34495e; /* Вертикална линија */
}

.footer-section:first-child {
    border-left: none; /* Првата секција нема линија */
}

.logo-img-small {
    height: 50px; /* Намалена големина на лого */
   
}

/* Линкови */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px; /* Просторот помеѓу линковите */
    flex-wrap: wrap;
}

.footer-section ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

/* Секција за авторски права */
.powered-by-section p {
    margin: 0;
    line-height: 1.4;
}

.powered-by-section a {
    font-weight: bold;
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.powered-by-section a:hover {
    color: #3498db;
}

.copyright {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
}

/* Медиа-кверји за помали екрани */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        border-left: none;
        padding: 10px 0;
        width: 100%; /* Целосна ширина на мали екрани */
    }

    .footer-section ul {
        justify-content: center;
    }
}

/* Popup стилови */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(0,0,0,0.4); justify-content: center; align-items: center;
}
.modal-content {
    background-color: #fff; padding: 20px; border: 1px solid #888; width: 80%; max-width: 500px;
    border-radius: 8px; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-button {
    color: #aaa; float: right; font-size: 28px; font-weight: bold;
}
.close-button:hover, .close-button:focus {
    color: black; text-decoration: none; cursor: pointer;
}

/* ======================================= */
/* MEDIA QUERIES ЗА МОБИЛЕН ИЗГЛЕД */
/* ======================================= */

@media (max-width: 768px) {
    /* Општи прилагодувања за помали екрани */
    .container {
        padding: 0 10px;
    }

    /* Хедер */
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .banner-container {
        text-align: center;
        width: 100%;
    }
    .banner-container img {
        max-width: 100%;
        height: auto;
    }

    /* Калкулатор и банери */
    .top-section {
        flex-direction: column;
        gap: 20px;
    }

    /* Приказ на резултатите од кредитите */
    .loan-card-compact {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        text-align: left;
    }
    .loan-card-compact img {
        margin-right: 0;
        margin-bottom: 15px;
        max-width: 100px;
    }
    .loan-info {
        width: 100%;
    }
    .loan-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    .details-button, .apply-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Дополнителни прилагодувања за многу мали екрани */
    .site-title {
        font-size: 2rem;
    }
}

.show-amortization-button {
  background-color: #008CBA; /* Сина боја, можеш да ја смениш */
  color: white; /* Боја на текстот */
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  margin-top: 10px;
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9em;
}

.amortization-table th, .amortization-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: right;
}

.amortization-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center;
}

.banner-container,
.banner-ad-container {
    width: 100%; /* Контејнерот за банер ќе ја зафаќа целата ширина */
    max-width: 728px; /* Максималната ширина ќе биде 728px за десктоп */
    height: auto;
    overflow: hidden; /* Спречува содржината да излезе надвор од контејнерот */
    margin: 0 auto; /* Центрирај го контејнерот */
}

.banner-ad-container img {
    width: 100%; /* Сликата ќе ја зафаќа целата ширина на својот контејнер */
    height: auto; /* Висината ќе се прилагоди автоматски */
    display: block;
}

.centered-ad-container {
    width: 300px;
    height: 250px;
    margin: 0 auto; /* Ова го центрира елементот хоризонтално */
    display: block; /* Осигурајте се дека е елемент на блок за да работи маргината */
}

.centered-ad-container img {
    max-width: 100%; /* Сликата ќе се прилагоди ако е преголема */
    height: auto;
    display: block;
}

/* Ова ќе го осигура дека банерот е центриран и внатре во својот контејнер */
.ad-banner {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .ad-banner {
        margin: 20px; /* Додадете малку простор над банерот на мобилен */
    }
}

.loan-details {
    display: none; /* Почетно скриено */
}

.loan-details.active {
    display: block; /* Прикажи кога е активно */
}

@media (max-width: 767px) {
  .ad-banner-desktop {
    display: none;
  }
}

.calculator-form .input-group input,
.calculator-form .input-group select {
  color: #333;
}

/* Скриј ги сите чекори од формата стандардно */
.form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Прикажи го само активниот чекор */
.form-step.active {
    display: block;
    opacity: 1;
}

/* Опционални стилови за подобар изглед */
.form-container {
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    max-width: 600px;
    margin: auto;
}

.input-group {
    margin-bottom: 20px;
}

.form-step h3 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-step button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.next-step-btn {
    background-color: #007bff;
    color: white;
}

.prev-step-btn {
    background-color: #6c757d;
    color: white;
}

.form-step:last-child button[type="submit"] {
    background-color: #28a745;
}

/* Додај го ова во твојот style.css */
.loan-details {
  display: none;
}

.loan-details.active {
  display: block;
}

/* admin.css */
/* ... (постоечкиот код) ... */

/* Стили за текстови во форми */
.loan-form-container textarea {
    min-height: 100px;
    resize: vertical;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.loan-form-container textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}