/* Scoped to avoid conflicts */
.gp-date-calc-wrapper .date-calc-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 25px;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: inherit; /* Inherit GeneratePress typography */
}

/* Heading */
.gp-date-calc-wrapper h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Tool Section */
.gp-date-calc-wrapper .tool-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

/* Form Elements */
.gp-date-calc-wrapper label {
    display: block;
    color: #34495e;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 16px;
}

.gp-date-calc-wrapper input[type="date"],
.gp-date-calc-wrapper input[type="number"],
.gp-date-calc-wrapper select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    color: #2c3e50;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.gp-date-calc-wrapper input[type="date"]:focus,
.gp-date-calc-wrapper input[type="number"]:focus,
.gp-date-calc-wrapper select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 4px rgba(52, 152, 219, 0.5);
}

/* Button */
.gp-date-calc-wrapper button {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gp-date-calc-wrapper button:hover {
    background: #2980b9;
}

/* Result Styling */
.gp-date-calc-wrapper p[id^="gp"][id$="Result"] {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    background: #2ecc71;
    color: white;
    display: none;
}

.gp-date-calc-wrapper p[id^="gp"][id$="Result"].error {
    background: #e74c3c;
}

/* Responsive Design */
@media (max-width: 480px) {
    .gp-date-calc-wrapper .date-calc-container {
        margin: 20px;
        padding: 15px;
    }

    .gp-date-calc-wrapper h2 {
        font-size: 24px;
    }

    .gp-date-calc-wrapper button {
        font-size: 14px;
    }

    .gp-date-calc-wrapper input[type="date"],
    .gp-date-calc-wrapper input[type="number"],
    .gp-date-calc-wrapper select {
        font-size: 14px;
    }
}