/* Container and row with 4 columns */
.row.with-ads {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: stretch;
    min-height: 380px;
    /* keep consistent height */
}

/* Ad columns - smaller width */
.ad-col {
    flex: 0 0 200px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* Main content columns */
.form-column {
    flex: 2.5 1 0;
    background: white;
    border-radius: 12px;
    padding: 24px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 320px;
    display: flex;
    flex-direction: column;
}

.result-column {
    flex: 1.5 1 0;
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Converted Time container styling */
#convertedTimeContainer {
    background: #e6ffed;
    border: 1.5px solid #38a169;
    border-radius: 14px;
    padding: 30px 25px;
    font-size: 1.4rem;
    color: #2f855a;
    user-select: text;
    cursor: text;
    box-shadow: 0 6px 15px rgb(56 161 105 / 0.25);
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.converted-label {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.converted-time {
    font-weight: 700;
    font-size: 1.6rem;
    display: inline-block;
    min-width: 160px;
}

/* Headings and form elements */
h2 {
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    /* unified margin */
}

label {
    font-weight: 600;
    margin-top: 15px;
    display: block;
}

select,
input[type="datetime-local"] {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
}

select:focus,
input[type="datetime-local"]:focus {
    box-shadow: 0 0 10px 2px #667eea;
    border-color: #667eea;
}

.btn-submit {
    margin-top: 20px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(90deg, #5564d1, #613e95);
}

/* Responsive: stack columns vertically on narrow screens */
@media (max-width: 900px) {
    .row.with-ads {
        flex-wrap: wrap;
        min-height: auto;
    }

    .ad-col,
    .form-column,
    .result-column {
        flex: 1 1 100%;
        min-width: auto;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.custom-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col {
    flex: 1;
    min-width: 300px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.features label {
    background: #f1f3f6;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.features label:hover {
    background: #e0e7ff;
}

.result-box {
    border: 1px solid #38a169;
    background: #f0fff4;
    border-radius: 8px;
    padding: 15px;
}

canvas {
    margin-top: 20px;
    width: 100% !important;
    max-height: 250px;
}

@media (max-width: 600px) {
    canvas {
        max-height: 250px;
    }
}

/* Chart card full width */
.full-width-chart-card {
    flex: 1 1 100%;
    padding: 0;
    margin-top: 10px;
    max-width: 100%;
}

.full-width-chart-card .result-box {
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: #f9fafb;
    max-width: 100%;
    overflow-x: hidden;
}

/* Freelancer cards */
.freelancers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.freelancer-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.freelancer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.freelancer-title {
    font-weight: 600;
    color: #2b6cb0;
    margin: 0;
}

.freelancer-category {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 4px;
}

.freelancer-link {
    display: block;
    margin-bottom: 15px;
    text-decoration: none;
}

/* Budget input */
.budget-input {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.budget-input:focus {
    border-color: #4cafef;
    box-shadow: 0 0 8px rgba(76, 175, 239, 0.3);
}

.budget-input::placeholder {
    color: #999;
    font-weight: 400;
}

.budget-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #888;
}

/* Status colors */
.status-success {
    color: green;
}

.status-warning {
    color: orange;
}

.status-error {
    color: red;
}

/* Blur effect */
.blur-active {
    filter: blur(4px);
    pointer-events: none;
}

/* Estimate range text */
.estimate-range {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #2d3748;
}


/* timezone */
.row.with-ads {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: stretch;
    min-height: 380px;
    /* keep consistent height */
}

/* Ad columns - smaller width */
.ad-col {
    flex: 0 0 200px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* Main content columns */
.form-column {
    flex: 2.5 1 0;
    background: white;
    border-radius: 12px;
    padding: 24px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 320px;
    display: flex;
    flex-direction: column;
}

.result-column {
    flex: 1.5 1 0;
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Converted Time container styling */
#convertedTimeContainer {
    background: #e6ffed;
    border: 1.5px solid #38a169;
    border-radius: 14px;
    padding: 30px 25px;
    font-size: 1.4rem;
    color: #2f855a;
    user-select: text;
    cursor: text;
    box-shadow: 0 6px 15px rgb(56 161 105 / 0.25);
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.converted-label {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.converted-time {
    font-weight: 700;
    font-size: 1.6rem;
    display: inline-block;
    min-width: 160px;
}

/* Headings and form elements */
h2 {
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

label {
    font-weight: 600;
    margin-top: 20px;
    display: block;
}

select,
input[type="datetime-local"] {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
}

select:focus,
input[type="datetime-local"]:focus {
    box-shadow: 0 0 10px 2px #667eea;
    border-color: #667eea;
}

.btn-submit {
    margin-top: 30px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(90deg, #5564d1, #613e95);
}

/* Responsive: stack columns vertically on narrow screens */
@media (max-width: 900px) {
    .row.with-ads {
        flex-wrap: wrap;
        min-height: auto;
    }

    .ad-col,
    .form-column,
    .result-column {
        flex: 1 1 100%;
        min-width: auto;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.custom-container {
    margin: 20px auto;
    padding: 20px;
}


/* currency converter */
#convertedAmountContainer {
    background: #e0f7fa;
    border: 1.5px solid #00838f;
    border-radius: 14px;
    padding: 30px 25px;
    font-size: 1.4rem;
    color: #006064;
    user-select: text;
    cursor: text;
    box-shadow: 0 6px 15px rgb(0 131 143 / 0.25);
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.converted-label {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.converted-amount {
    font-weight: 700;
    font-size: 1.6rem;
    display: inline-block;
    min-width: 160px;
}