.ipaas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    font-family: 'Segoe UI', sans-serif;
    margin: 30px auto;
}

.ipaas-form {
    flex: 1 1 100%;
    max-width: 500px;
    background: #fff;
}

.ipaas-form h3 {
    color: #1e1e1e;
    margin-bottom: 20px;
    text-align: center;
}

.ipaas-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e1e1e;
}

.ipaas-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 16px;
    border: 1px solid #d0d8e1;
    background: #f8f9fb;
    font-size: 15px;
    color: #1e1e1e;
    box-sizing: border-box;
    outline: none;
    transition: border 0.3s;
}

.ipaas-form input:focus {
    border-color: #0073aa;
    background: #fff;
}

.ipaas-form button {
    width: 100%;
    padding: 18px 32px;
    border-radius: 32px;
    background-color: #31aa49;
    color: #fff;
    border: 3px solid #31aa49;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0;
}

.ipaas-form button:hover {
    border-color: #000;
    background-color: #2e9941;
}

/* Results actions container */
.ipaas-results-actions {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.ipaas-results-actions button {
    width: 100%;
    padding: 18px 32px;
    border-radius: 32px;
    background-color: #31aa49;
    color: #fff;
    border: 3px solid #31aa49;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0;
}

.ipaas-results-actions button:hover {
    border-color: #000;
    background-color: #2e9941;
}

/* Download PDF button */
.download-pdf-btn {
    padding: 14px 28px;
    border-radius: 25px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.download-pdf-btn:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

.download-pdf-btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.download-pdf-btn:disabled:hover {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
}

.download-info {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-style: italic;
}

.ipaas-results {
    flex: 1 1 100%;
    max-width: 600px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: none; /* Başlangıçta gizli */
}

.ipaas-results h4 {
    margin: 20px 0 10px;
    color: #333;
    border-left: 5px solid #0073aa;
    padding-left: 10px;
}

.ipaas-results table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ipaas-results th,
.ipaas-results td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.ipaas-results th {
    background-color: #f0f0f0;
}

.ipaas-summary {
    font-weight: bold;
    font-size: 32px;
    color: #31aa49;
    text-align: center;
}

/* Results visible state */
.ipaas-container.results-visible .ipaas-results {
    display: block !important;
}

@media (min-width: 900px) {
    .ipaas-form {
        flex: 1 1 45%;
    }

    .ipaas-results {
        flex: 1 1 50%;
        display: none; /* yine ilk başta gizli */
    }

    .ipaas-container.results-visible .ipaas-form {
        flex: 1 1 45%;
    }

    .ipaas-container.results-visible .ipaas-results {
        display: block;
    }
}

@media (max-width: 768px) {
    .ipaas-container {
        flex-direction: column;
    }

    .ipaas-results {
        margin-top: 20px;
    }
}

/* HubSpot Form Modal Styles */
.hubspot-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.hubspot-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.hubspot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.hubspot-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.hubspot-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.3s;
}

.hubspot-modal-close:hover,
.hubspot-modal-close:focus {
    color: #000;
    text-decoration: none;
}

.hubspot-form-container {
    min-height: 400px;
    padding: 20px 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .hubspot-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }
    
    .hubspot-modal-header h3 {
        font-size: 20px;
    }
}